add redirects for query parameters with static HTML
This commit is contained in:
parent
0687ad9ee2
commit
b132434929
@ -379,6 +379,9 @@ http {
|
||||
}
|
||||
|
||||
location = /install/web {
|
||||
if ($request_uri ~ \?) {
|
||||
rewrite ^(.*)$ $1? permanent;
|
||||
}
|
||||
include snippets/security-headers-base.conf;
|
||||
add_header Content-Security-Policy "default-src 'none'; child-src 'self'; connect-src 'self' https://releases.grapheneos.org/; font-src 'self'; img-src 'self'; manifest-src 'self'; script-src 'self'; style-src 'self'; webrtc 'block'; form-action 'none'; frame-ancestors 'none'; base-uri 'none'" always;
|
||||
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), clipboard-write=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), speaker-selection=(), sync-xhr=(), xr-spatial-tracking=()" always;
|
||||
@ -397,6 +400,9 @@ http {
|
||||
}
|
||||
|
||||
location ~ "/$" {
|
||||
if ($request_uri ~ \?) {
|
||||
rewrite ^(.*)$ $1? permanent;
|
||||
}
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Cache-Control "public, no-cache";
|
||||
@ -452,6 +458,9 @@ http {
|
||||
}
|
||||
|
||||
location / {
|
||||
if ($request_uri ~ \?) {
|
||||
rewrite ^(.*)$ $1? permanent;
|
||||
}
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Cache-Control "public, no-cache";
|
||||
|
Loading…
x
Reference in New Issue
Block a user