forked from MapComplete/MapComplete
Config: add 404 and make .html-extension optional
This commit is contained in:
parent
5284d94427
commit
b0612ac6b1
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue