updated configuration files and added proxy headers

This commit is contained in:
Asif Bacchus 2019-01-04 04:44:37 -07:00
parent 9b763dc392
commit ae8f76a8fa
3 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,12 @@
#######
### NGINX configuration - proxy headers
#######
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header Early-Data $ssl_early_data;

View File

@ -8,4 +8,5 @@ add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Referrer-Policy "same-origin" always;
add_header Referrer-Policy "no-referrer" always;
add_header Feature-Policy "geolocation 'self'";

View File

@ -2,7 +2,11 @@
### NGINX configurations - timeouts
#######
client_body_timeout 12s;
client_header_timeout 12s;
keepalive_timeout 15s;
send_timeout 10s;
client_body_timeout 12;
client_header_timeout 12;
keepalive_timeout 15;
send_timeout 300;
reset_timedout_connection on;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;