Replies: 1 comment
-
CouchDB is not relocatable in that way, you'll need to configure your proxy to rewrite the paths to match the couchdb api (/$dbname, etc). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two CouchDB instances behind reverse proxies. They can be accessed with following urls.
DB1: https://example-1.com/_db
DB2: https://example-2.com/_db
Notice: _db is not the name of database, but it is the root path for CouchDB instance, so when I call https://example-1.com/_db I am getting:
Now I am trying to replicate data from DB1 to DB2. I created following document in DB1:
But it always ends with an error:
Assuming from error log CouchDB is sending request to https://domain-1.com/_session which cannot work as this endpoint does not exist in this setup. It should be https://domain-1.com/_db/_session.
I tried also without source_proxy and target_proxy but in this case I am getting
Which also shows that the request is not being sent to correct destination.
Am I using proxy options wrong? Or replication in CouchDB is not able to work when the database is not exposed from the root path?
Beta Was this translation helpful? Give feedback.
All reactions