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;
43 client_max_body_size 0;
50 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
51 ssl_prefer_server_ciphers on;
57 access_log /var/log/nginx/access.log;
58 error_log /var/log/nginx/error.log;
70 # gzip_http_version 1.1;
71 # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
74 # Virtual Host Configs
77 include /etc/nginx/conf.d/*.conf;
78 include /etc/nginx/sites-enabled/*;
83 # # See sample authentication script at:
84 # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
86 # # auth_http localhost/auth.php;
87 # # pop3_capabilities "TOP" "USER";
88 # # imap_capabilities "IMAP4rev1" "UIDPLUS";
91 # listen localhost:110;
97 # listen localhost:143;