mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 15:28:12 +08:00
@@ -11,10 +11,15 @@ add_header Content-Security-Policy "{{ data.content_security_policy }}" always;<
|
||||
add_header Strict-Transport-Security "max-age=31536000{{ isHSTSSubdomains() ? '; includeSubDomains' : '' }}{{ isHSTSPreload() ? '; preload' : '' }}" always;</span>
|
||||
|
||||
# . files
|
||||
location ~ /\.(?!well-known) {
|
||||
location ^~ /. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# .well-known
|
||||
location ^~ /.well-known/ {
|
||||
allow all;
|
||||
}
|
||||
|
||||
# favicon.ico
|
||||
location = /favicon.ico {
|
||||
log_not_found off;<!--
|
||||
|
Reference in New Issue
Block a user