Created
February 19, 2015 20:25
CouchDB in an Nginx reverse proxy
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
# this is the config I always use, to route http://mysite.com/couchdb to localhost:5984. | |
location /couchdb { | |
rewrite /couchdb(.*) $1 break; | |
proxy_pass http://127.0.0.1:5984; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@musamusa The following configuration works for CouchDB 2.x.x: