MapComplete/Docs/ServerConfig/hetzner/Caddyfile
2024-12-31 20:45:18 +01:00

65 lines
1 KiB
Caddyfile

builds.mapcomplete.org {
root * public/
file_server
header {
+Permissions-Policy "interest-cohort=()"
}
}
dev.mapcomplete.org {
root * public/develop/
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
}
}
single.mapcomplete.org {
root * single_theme_builds/
file_server
header {
+Permissions-Policy "interest-cohort=()"
}
}
velopark.mapcomplete.org {
root * single_theme_builds/velopark/
file_server
header {
+Permissions-Policy "interest-cohort=()"
}
}
countrycoder.mapcomplete.org {
root * tiles/
file_server
header {
+Permissions-Policy "interest-cohort=()"
+Access-Control-Allow-Origin *
}
}
report.mapcomplete.org {
reverse_proxy http://127.0.0.1:2348
}
studio.mapcomplete.org {
reverse_proxy http://127.0.0.1:1235
}
lod.mapcomplete.org {
reverse_proxy http://127.0.0.1:2346
}
ipinfo.mapcomplete.org {
reverse_proxy 127.0.0.1:2347
}