Additional proxy deploy options: client-ip-header, exclude-metrics-paths, canonical-host - #1941
Open
kevinmcconnell wants to merge 3 commits into
Open
kevinmcconnell wants to merge 3 commits into
kevinmcconnell wants to merge 3 commits into
Conversation
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
force-pushed
the
additional-proxy-deploy-options
branch
from
August 27, 2026 17:06
b6838ce to
755de3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for 3 new deploy options in Kamal Proxy.
@djmb fyi two of these will be new in 0.10.0.
--canonical-hostexists already in 0.9.2 but hadn't been wired up yet.(Also cc @lewispb)