Skip to content

Instantly share code, notes, and snippets.

@arakdraja
arakdraja / ZimbraHelpers.php
Created November 11, 2020 00:14 — forked from iomarmochtar/ZimbraHelpers.php
A Simple of using zimbra api in yii2 webapp
<?php
// Author: Imam Omar Mochtar ([email protected])
namespace app\models;
use Yii;
use Zimbra\Admin\AdminFactory;
use Zimbra\Admin\Request\CreateAccount;
use Zimbra\Struct\KeyValuePair;
use Zimbra\Struct\AccountSelector;
use Zimbra\Enum\AccountBy;
@arakdraja
arakdraja / nginx.conf
Created May 16, 2018 14:03 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@arakdraja
arakdraja / next_nginx.md
Created May 16, 2018 13:55 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw