Test of rearranged caddyfile (not sure if it hoists)

This commit is contained in:
2025-01-30 17:06:45 +00:00
parent db65bf7e7b
commit a48effcdfe

View File

@@ -6,39 +6,6 @@
} }
} }
(site) {
@landing {
path / /contact* /about* /favicon.png
}
handle /_app/* {
reverse_proxy site:3000
}
handle @landing {
reverse_proxy site:3000 {
health_uri /health
health_interval 30s
health_timeout 10s
health_status 200
}
}
handle /repo* {
uri strip_prefix /repo
import repo_site
}
}
:80 {
import site
}
http://am-d-model.eu {
import site
}
am-d-model.eu {
import site
}
# Repo config # Repo config
(repo_cors) { (repo_cors) {
header { header {
@@ -108,3 +75,37 @@ am-d-model.eu {
file_server file_server
} }
} }
# Main site config
(site) {
@landing {
path / /contact* /about* /favicon.png
}
handle /_app/* {
reverse_proxy site:3000
}
handle @landing {
reverse_proxy site:3000 {
health_uri /health
health_interval 30s
health_timeout 10s
health_status 200
}
}
handle /repo* {
uri strip_prefix /repo
import repo_site
}
}
:80 {
import site
}
http://am-d-model.eu {
import site
}
am-d-model.eu {
import site
}