Deploy: kamal-proxy keeps no request log (log driver none) #1

Merged
kroshtan merged 1 commit from proxy-no-request-logs into main 2026-11-18 11:04:11 +00:00
Owner

kamal-proxy logs every request with the visitor's address (from X-Forwarded-For) and has no switch to leave it out. The shared proxy on git.kroshtan.com already runs with --log-driver none, and unfret_backend's deploy.yml carries the same block (its #215). Kamal applies proxy.run whenever the proxy container is created, from whichever app runs kamal proxy reboot, so without this here a reboot from this repo would turn request logging back on for every app.

  • proxy.run.options.log-driver: none
  • proxy.run.log_max_size: "": drops Kamal's --log-opt max-size, which Docker refuses with the none driver

kamal deploy doesn't recreate the running proxy, so the deploy from this merge changes nothing on the box. Checked with Kamal 2.12.0: kamal config loads, and the proxy run command it builds is docker run --name kamal-proxy … --log-driver "none" basecamp/kamal-proxy:v0.9.2 kamal-proxy run with no --log-opt.

🤖 Generated with Claude Code

https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ

kamal-proxy logs every request with the visitor's address (from X-Forwarded-For) and has no switch to leave it out. The shared proxy on git.kroshtan.com already runs with `--log-driver none`, and unfret_backend's deploy.yml carries the same block (its #215). Kamal applies `proxy.run` whenever the proxy container is created, from whichever app runs `kamal proxy reboot`, so without this here a reboot from this repo would turn request logging back on for every app. - `proxy.run.options.log-driver: none` - `proxy.run.log_max_size: ""`: drops Kamal's `--log-opt max-size`, which Docker refuses with the `none` driver `kamal deploy` doesn't recreate the running proxy, so the deploy from this merge changes nothing on the box. Checked with Kamal 2.12.0: `kamal config` loads, and the proxy run command it builds is `docker run --name kamal-proxy … --log-driver "none" basecamp/kamal-proxy:v0.9.2 kamal-proxy run` with no `--log-opt`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ
Deploy: kamal-proxy keeps no request log (log driver none)
All checks were successful
CI / CD / check (pull_request) Successful in 39s
CI / CD / deploy (pull_request) Has been skipped
d342a0f07a
kamal-proxy logs every request with the visitor's address, and the proxy is shared by every app on the box.
Unfret's deploy.yml already sets this; without it here a kamal proxy reboot from this repo would turn request
logging back on for all of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ
kroshtan deleted branch proxy-no-request-logs 2026-11-18 11:04:11 +00:00
Sign in to join this conversation.
No description provided.