updated configuration files and added proxy headers
This commit is contained in:
parent
9b763dc392
commit
ae8f76a8fa
12
etc/nginx/conf.d/proxyHeaders.conf
Normal file
12
etc/nginx/conf.d/proxyHeaders.conf
Normal 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;
|
@ -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'";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user