Config: add 404 and make .html-extension optional

This commit is contained in:
Pieter Vander Vennet 2024-12-31 20:45:18 +01:00
parent 5284d94427
commit b0612ac6b1

View file

@ -8,10 +8,18 @@ builds.mapcomplete.org {
dev.mapcomplete.org { dev.mapcomplete.org {
root * public/develop/ root * public/develop/
try_files {path}.html
file_server file_server
header { header {
+Permissions-Policy "interest-cohort=()" +Permissions-Policy "interest-cohort=()"
} }
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
} }
single.mapcomplete.org { single.mapcomplete.org {