mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-02-22 07:39:55 -05:00
nginx regex: don't capture groups unnecessarily
This commit is contained in:
parent
5fcd75f795
commit
bfcc6b5958
@ -107,7 +107,7 @@ http {
|
|||||||
return 301 https://grapheneos.org/articles/grapheneos-servers#matrix.grapheneos.org;
|
return 301 https://grapheneos.org/articles/grapheneos-servers#matrix.grapheneos.org;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^(/_matrix|/_synapse/client) {
|
location ~ ^(?:/_matrix|/_synapse/client) {
|
||||||
# remove security headers that are statically set to the strictest possible values below
|
# remove security headers that are statically set to the strictest possible values below
|
||||||
proxy_hide_header Referrer-Policy;
|
proxy_hide_header Referrer-Policy;
|
||||||
proxy_hide_header X-Frame-Options;
|
proxy_hide_header X-Frame-Options;
|
||||||
@ -148,7 +148,7 @@ http {
|
|||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-Robots-Tag "none";
|
add_header X-Robots-Tag "none";
|
||||||
|
|
||||||
location ~ '\.(css|html|ico|js|json|map|svg|txt|wasm|xml)$' {
|
location ~ '\.(?:css|html|ico|js|json|map|svg|txt|wasm|xml)$' {
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
brotli_static on;
|
brotli_static on;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user