mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-03-07 14:05:58 -05:00
switch to certbot webroot plugin
This commit is contained in:
parent
5571abff90
commit
218927ac6e
@ -109,6 +109,10 @@ http {
|
||||
return 301 https://grapheneos.org/articles/grapheneos-servers#matrix.grapheneos.org;
|
||||
}
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /srv/certbot;
|
||||
}
|
||||
|
||||
location ~ ^(?:/_matrix|/_synapse/client) {
|
||||
# remove security headers that are statically set to the strictest possible values below
|
||||
proxy_hide_header Referrer-Policy;
|
||||
@ -150,6 +154,10 @@ http {
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Robots-Tag "none";
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /srv/certbot;
|
||||
}
|
||||
|
||||
location ~ '\.(?:css|html|ico|js|json|map|svg|txt|wasm|xml)$' {
|
||||
gzip_static on;
|
||||
brotli_static on;
|
||||
|
Loading…
x
Reference in New Issue
Block a user