From a48effcdfea897617c0d98de77a41f083a9d6cb0 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 30 Jan 2025 17:06:45 +0000 Subject: [PATCH] Test of rearranged caddyfile (not sure if it hoists) --- caddy/Caddyfile | 67 +++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 4f74ce1..f74c6f6 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -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_cors) { header { @@ -108,3 +75,37 @@ am-d-model.eu { 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 +}