docs(deploying/generic): add haproxy host header quirk #2331
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
7 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2331
Loading…
Reference in a new issue
No description provided.
Delete branch "fkszczot/continuwuity:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Filip Kszczot filip@kszczot.pl
This pull request documents how haproxy handles hdr(host) matching, which can lead to problem with how certain homeservers send it.
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
@ -199,6 +199,9 @@ header, making federation non-functional. If you find a workaround, please shareFurthermore, Nginx users need to increase the `client_max_body_size` setting (default is 1M) to match the `max_request_size` defined in conduwuit.toml.- If using HAProxy, your ACL needs to match both server_name.tld and server_name.tld:443, because HAProxy matches the raw Host header, and federation requests often include the port:Maybe add backticks around
server_name.tldandserver_name.tld:443, other than that lgtmDone!
13a125ad438c365615b8@ -199,6 +199,9 @@ header, making federation non-functional. If you find a workaround, please shareFurthermore, Nginx users need to increase the `client_max_body_size` setting (default is 1M) to match the `max_request_size` defined in conduwuit.toml.- If using HAProxy, your ACL needs to match both `server_name.tld` and `server_name.tld:443`, because HAProxy matches the raw Host header, and federation requests often include the port:also backticks to
Hostin "rawHostheader"then it lgtm
im a bit blind at times
8c365615b8aea7717944aea7717944668a57cbf7668a57cbf7d560b2f99cnote: strat had some comments to make before this can be merged
d560b2f99ca7ce6a7915a7ce6a79151276732c97@ -199,6 +199,11 @@ header, making federation non-functional. If you find a workaround, please shareFurthermore, Nginx users need to increase the `client_max_body_size` setting (default is 1M) to match the `max_request_size` defined in conduwuit.toml.- If using HAProxy, your ACL needs to match both `example.com` (your `server_name`) and `example.com:443`, because HAProxy matches the raw `Host` header, and federation requests often include the port - this may be fixed by adding the `host_only` option:consider:
consider:
Is this ready to merge? @stratself @lveneris
we are waiting on comment resolution
1276732c9749029e4522