clean up nginx config
This commit is contained in:
5
snippets/default_proxy.conf
Normal file
5
snippets/default_proxy.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
location / {
|
||||
include proxy.conf;
|
||||
proxy_buffering off;
|
||||
proxy_pass http://$host:$port;
|
||||
}
|
||||
16
snippets/proxy.conf
Normal file
16
snippets/proxy.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Proxy "";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarde-Proto $scheme;
|
||||
proxy_set_header X_FORWARDED_SSL on;
|
||||
proxy_set_header HTTP_X_FORWARDED_SSL on;
|
||||
proxy_buffering off;
|
||||
|
||||
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'";
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header Referrer-Policy "strict-origin";
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
Reference in New Issue
Block a user