|
|
@ -27,6 +27,10 @@ matrix.DOMAIN.tld {
|
|
|
|
not path /matrix/static-files/*
|
|
|
|
not path /matrix/static-files/*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@wellknown {
|
|
|
|
|
|
|
|
path /.well-known/matrix/*
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
header {
|
|
|
|
header {
|
|
|
|
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
|
|
|
|
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS
|
|
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
|
@ -69,6 +73,15 @@ matrix.DOMAIN.tld {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handle @wellknown {
|
|
|
|
|
|
|
|
encode zstd gzip
|
|
|
|
|
|
|
|
root * /matrix/static-files
|
|
|
|
|
|
|
|
header Cache-Control max-age=14400
|
|
|
|
|
|
|
|
header Content-Type application/json
|
|
|
|
|
|
|
|
header Access-Control-Allow-Origin *
|
|
|
|
|
|
|
|
file_server
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handle {
|
|
|
|
handle {
|
|
|
|
encode zstd gzip
|
|
|
|
encode zstd gzip
|
|
|
|
|
|
|
|
|
|
|
|