# Caddy v2 reverse proxy for the URL shortener.
# Reader-facing copy lives at cloud-devops/lesson07-vm-deploy/lab_guide.html —
# if you edit this file, update the inline copy in the lab guide too.

{
    email {$ACME_EMAIL}
}

{$DOMAIN} {
    encode zstd gzip
    reverse_proxy api:8000

    @health path /healthz
    handle @health {
        reverse_proxy api:8000
    }

    log {
        output stdout
        format console
    }
}
