4 include /etc/nginx/modules-enabled/*.conf;
7 worker_connections 768;
20 types_hash_max_size 2048;
22 include /etc/nginx/mime.types;
23 default_type application/octet-stream;
25 server { # simple reverse-proxy
30 server_name localhost;
31 ssl_certificate /usr/src/app/cert/cert.crt;
32 ssl_certificate_key /usr/src/app/cert/key.crt;
33 ssl_password_file /usr/src/app/cert/pass;
35 # serve dynamic requests
37 proxy_set_header Host $host;
38 proxy_set_header X-Real-IP $remote_addr;
39 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
40 proxy_pass http://localhost:2222;
42 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;