mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(reverse-proxy): ♻ combine add_header files to try fix missing CSP header
This commit is contained in:
parent
871c175b8a
commit
5d08ca91a7
6 changed files with 28 additions and 26 deletions
|
|
@ -1 +0,0 @@
|
|||
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; img-src 'self' validator.swagger.io data:; manifest-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'none'; frame-ancestors 'none';" always;
|
||||
|
|
@ -1,3 +1,11 @@
|
|||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; img-src 'self' validator.swagger.io data:; manifest-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'none'; frame-ancestors 'none';" always;
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
||||
|
||||
# https://enable-cors.org/server_nginx.html
|
||||
#
|
||||
# Wide-open CORS config for nginx
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# https://ssl-config.mozilla.org/#server=nginx&config=intermediate&ocsp=false
|
||||
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
|
@ -1 +1,20 @@
|
|||
server_tokens off;
|
||||
server_tokens off;
|
||||
|
||||
|
||||
# https://ssl-config.mozilla.org/#server=nginx&config=intermediate&ocsp=false
|
||||
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_dhparam /etc/nginx/cert/dhparam.pem;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
|
||||
# https://support.cloudflare.com/hc/en-us/articles/204899617-Authenticated-Origin-Pulls
|
||||
|
||||
ssl_client_certificate /etc/nginx/cert/cloudflare.crt;
|
||||
ssl_verify_client on;
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
# https://ssl-config.mozilla.org/#server=nginx&config=intermediate&ocsp=false
|
||||
|
||||
ssl_session_timeout 1d;
|
||||
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
|
||||
ssl_session_tickets off;
|
||||
|
||||
ssl_dhparam /etc/nginx/cert/dhparam.pem;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
|
||||
# https://support.cloudflare.com/hc/en-us/articles/204899617-Authenticated-Origin-Pulls
|
||||
|
||||
ssl_client_certificate /etc/nginx/cert/cloudflare.crt;
|
||||
ssl_verify_client on;
|
||||
Loading…
Reference in a new issue