use a default location block
This commit is contained in:
parent
5a923bd1bb
commit
3bb6e98151
@ -70,9 +70,10 @@ server {
|
||||
default_type text/plain;
|
||||
}
|
||||
|
||||
location ~ "\.(html|txt|xml)$" {
|
||||
location / {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=1800";
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ "\.(ico|webmanifest)$" {
|
||||
@ -91,7 +92,6 @@ server {
|
||||
gzip_static off;
|
||||
}
|
||||
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
charset utf-8;
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
gzip_static on;
|
||||
|
Loading…
x
Reference in New Issue
Block a user