forked from MapComplete/MapComplete
Config: caddy file formatting and validation, add browse directive for "builds"
This commit is contained in:
parent
b8864bd71c
commit
ba8af6507e
1 changed files with 21 additions and 29 deletions
|
@ -7,19 +7,19 @@ builds.mapcomplete.org {
|
|||
}
|
||||
|
||||
mapcomplete.org, www.mapcomplete.org {
|
||||
root * public/master/
|
||||
try_files {path}.html
|
||||
file_server
|
||||
header {
|
||||
+Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
handle_errors {
|
||||
@404 {
|
||||
expression {http.error.status_code} == 404
|
||||
}
|
||||
rewrite @404 /404.html
|
||||
file_server
|
||||
}
|
||||
root * public/master/
|
||||
try_files {path}.html
|
||||
file_server
|
||||
header {
|
||||
+Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
handle_errors {
|
||||
@404 {
|
||||
expression {http.error.status_code} == 404
|
||||
}
|
||||
rewrite @404 /404.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
dev.mapcomplete.org {
|
||||
|
@ -29,18 +29,18 @@ dev.mapcomplete.org {
|
|||
header {
|
||||
+Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
handle_errors {
|
||||
@404 {
|
||||
expression {http.error.status_code} == 404
|
||||
}
|
||||
rewrite @404 /404.html
|
||||
file_server
|
||||
}
|
||||
handle_errors {
|
||||
@404 {
|
||||
expression {http.error.status_code} == 404
|
||||
}
|
||||
rewrite @404 /404.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
single.mapcomplete.org {
|
||||
root * single_theme_builds/
|
||||
file_server
|
||||
file_server browse
|
||||
header {
|
||||
+Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
|
@ -62,14 +62,6 @@ velopark.mapcomplete.org {
|
|||
}
|
||||
}
|
||||
|
||||
app.mapcomplete.org {
|
||||
root * app/
|
||||
file_server
|
||||
header {
|
||||
+Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
}
|
||||
|
||||
countrycoder.mapcomplete.org {
|
||||
root * tiles/
|
||||
file_server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue