mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-05-20 23:40:44 -04:00
nginx regex: don't capture groups unnecessarily
This commit is contained in:
parent
5fcd75f795
commit
bfcc6b5958
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue