diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 92a5cc3..4958da6 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,14 +9,18 @@ level DEBUG } - reverse_proxy /* site:3000 { - health_uri /health - health_interval 30s - health_timeout 10s - health_status 200 + @landing { + path / /contact* /about* } - - route /repo/* { + handle @landing { + reverse_proxy site:3000 { + health_uri /health + health_interval 30s + health_timeout 10s + health_status 200 + } + } + handle /repo* { uri strip_prefix /repo reverse_proxy repo-placeholder:80 }