# Caddy 2 config for PKB MCP server.
# - Automatic TLS via Let's Encrypt for the configured hostname.
# - Reverse-proxies all paths (/sse, /messages, /healthz) to the pkb service on port 8080.
# - For local dev, swap pkb.example.com -> `localhost` and add `tls internal`.

# Replace pkb.example.com with your domain.
# For local testing without a real domain, change to `:443` or use `localhost` with `tls internal`.

pkb.example.com {
    encode gzip
    reverse_proxy pkb:8080
    log {
        output stdout
        format json
    }
}
