Skip to content

configurable request header for determining peer#6063

Open
rnewson wants to merge 1 commit into
mainfrom
custom-peer-header
Open

configurable request header for determining peer#6063
rnewson wants to merge 1 commit into
mainfrom
custom-peer-header

Conversation

@rnewson

@rnewson rnewson commented Jul 10, 2026

Copy link
Copy Markdown
Member

Overview

Allow peer determination by a custom header, useful when CouchDB is behind a reverse proxy or load balancer.

In the absence of the header the usual logic is used to determine peer (the x-forwarded-for header logic in mochiweb).

Testing recommendations

covered by tests.

Related Issues or Pull Requests

#6052

Checklist

  • This is my own work, I did not use AI, LLM's or similar technology
  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

@rnewson
rnewson force-pushed the custom-peer-header branch from b615fe3 to fb66a58 Compare July 19, 2026 19:17
@rnewson
rnewson marked this pull request as ready for review July 19, 2026 19:17
@rnewson
rnewson requested review from janl and nickva and removed request for janl July 19, 2026 19:18
@rnewson
rnewson force-pushed the custom-peer-header branch from fb66a58 to 4f7db1c Compare July 19, 2026 20:04
@rnewson
rnewson force-pushed the custom-peer-header branch from 4f7db1c to 37eade8 Compare July 19, 2026 20:20
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.

1 participant