server {
    proxy_connect_timeout 600;
    proxy_send_timeout 600;
    proxy_read_timeout 600;
    send_timeout 600;
    server_name 127.0.0.1;
    listen 443 ssl;

    ssl on;
    ssl_certificate /etc/nginx/certificates/refstack_dev.crt;
    ssl_certificate_key /etc/nginx/certificates/refstack_dev.key;
    ssl_protocols TLSv1.1 TLSv1.2;
    ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5:!DSS:!RC4;
    ssl_prefer_server_ciphers on;
    ssl_session_timeout 5m;
    location / {
        access_log off;
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}