mirror of
https://github.com/jo/couchdb-best-practices.git
synced 2026-05-15 14:16:00 -06:00
[GH-ISSUE #1] Why is nginx not recommended as a proxy? #352
Labels
No labels
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/couchdb-best-practices#352
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @tlvince on GitHub (May 5, 2015).
Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/1
An issue with SSL termination (citation needed) /cc @janl
@jo commented on GitHub (May 5, 2015):
Nginx encodes urls on the way through. So, for example, if you request
http://my.couch.behind.nginx.com/mydb/foo%2Fbarit gets routed to CouchDB as/mydb/foo/bar, which is not what we want.We can configure this mad behaviour away (by not appending a slash to the proxy_pass target :P) but there is no way to convince nginx not messing with the url when rewriting the proxy behind a subdirectory, eg
http://my.couch.behind.nginx.com/_couchdb/mydb/foo%2FbarJust to mention one argument against nginx ;)
@jo commented on GitHub (May 5, 2015):
3caf71dffb@jo commented on GitHub (May 5, 2015):
https://github.com/eHealthAfrica/ehealth-deployment/issues/151
@janl commented on GitHub (May 23, 2015):
Here is a another one: https://www.ruby-forum.com/topic/4412004 — Last time I checked this was still not resolved.
@chrispahm commented on GitHub (Apr 22, 2020):
Just stumbled upon this issue, but I thought I'd post a solution that works (at least for my usecase):
For a CouchDB located at
http://my.couch.behind.nginx.com/mydb/, I use the following nginx configuration (simplified)The solution came up when discussing the issue on stackoverflow