4 include /etc/nginx/modules-enabled/*.conf;
7 worker_connections 768;
21 types_hash_max_size 2048;
24 # server_names_hash_bucket_size 64;
25 # server_name_in_redirect off;
27 include /etc/nginx/mime.types;
28 default_type application/octet-stream;
30 server { # simple reverse-proxy
35 server_name localhost;
36 ssl_certificate /usr/src/app/cert/cert.crt;
37 ssl_certificate_key /usr/src/app/cert/key.crt;
38 ssl_password_file /usr/src/app/cert/pass;
40 # serve dynamic requests
42 proxy_pass http://localhost:2222;
49 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
50 ssl_prefer_server_ciphers on;
56 access_log /var/log/nginx/access.log;
57 error_log /var/log/nginx/error.log;
69 # gzip_http_version 1.1;
70 # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
73 # Virtual Host Configs
76 include /etc/nginx/conf.d/*.conf;
77 include /etc/nginx/sites-enabled/*;
82 # # See sample authentication script at:
83 # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
85 # # auth_http localhost/auth.php;
86 # # pop3_capabilities "TOP" "USER";
87 # # imap_capabilities "IMAP4rev1" "UIDPLUS";
90 # listen localhost:110;
96 # listen localhost:143;