13 lines
533 B
Plaintext
13 lines
533 B
Plaintext
# Default configuration applied to all virtual hosts
|
|
# Security headers and WAF rules - applied to ALL hosts (public and private)
|
|
|
|
# Security headers
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
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 "strict-origin-when-cross-origin" always;
|
|
|
|
# Include block-exploits rules
|
|
include /etc/nginx/conf.d/block-exploits.conf;
|