Hi,
I plan to replicate a local pouchdb db with a remote couchdb db. In order to access the remote couchdb url, I think there are the following 2 options:
1) Don't expose couchdb url to the public (i.e: bind it to a local address), but to visit it through a reverse proxy set on the application server.
2) Expose couchdb url to the public (i.e: bind to the public address) and use the public url directly to do replication. Besides, I also need to enable CORS of couchdb server.
I prefer #2 in all aspects (e.g: easier to setup, more efficient for replication traffic) except for security concern. I'm interested to hear your comments.
-Ying