Skip to content

Additional proxy deploy options: client-ip-header, exclude-metrics-paths, canonical-host - #1941

Open
kevinmcconnell wants to merge 3 commits into
mainfrom
additional-proxy-deploy-options
Open

kevinmcconnell wants to merge 3 commits into
mainfrom
additional-proxy-deploy-options

Conversation

@kevinmcconnell

Copy link
Copy Markdown
Collaborator

Adds support for 3 new deploy options in Kamal Proxy.

@djmb fyi two of these will be new in 0.10.0. --canonical-host exists already in 0.9.2 but hadn't been wired up yet.

(Also cc @lewispb)

Copilot AI balanced review requested due to automatic review settings August 27, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Maps to kamal-proxy's --client-ip-header deploy flag. When set, the
proxy copies the named request header into X-Forwarded-For before
logging and forwarding, for proxies or CDNs in front of kamal-proxy
that pass the client IP in a different header (for example
Cloudflare's True-Client-IP).
Maps to kamal-proxy's repeatable --exclude-metrics-path deploy flag.
Listed paths are left out of the Prometheus request counters and
in-flight gauge, which keeps health check traffic from load balancers
and uptime monitors out of the metrics. Requests are still logged.
Maps to kamal-proxy's --canonical-host deploy flag, which redirects
all requests to the given host. Useful to force either the root domain
or the www subdomain when the app is served on both.
@kevinmcconnell
kevinmcconnell force-pushed the additional-proxy-deploy-options branch from b6838ce to 755de3b Compare August 27, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants