diff --git a/templates/Caddyfile.j2 b/templates/Caddyfile.j2 index 90e31ea..fd05842 100644 --- a/templates/Caddyfile.j2 +++ b/templates/Caddyfile.j2 @@ -18,6 +18,14 @@ poc.athelas.fr { ca https://acme-staging-v02.api.letsencrypt.org/directory } + handle_errors { + rewrite * /{err.status_code} + reverse_proxy https://http.cat { + header_up Host {upstream_hostport} + replace_status {err.status_code} + } + } + } # Refer to the Caddy docs for more information: