HTTP Proxy Support for replication #74

Closed
mujhs opened this Issue Oct 7, 2011 · 1 comment

Projects

None yet

2 participants

@mujhs

Does the current API support replication through an http proxy? Looking through the source it does not look that way.

From http://wiki.apache.org/couchdb/Replication

Replicating through a proxy

Pass a "proxy" argument in the replication data to have replication go through an HTTP proxy:

POST /_replicate HTTP/1.1
{"source":"example-database","target":"http://example.org/example-database", "proxy":"http://localhost:8888"}

@samlown
CouchRest member

This isn't supported in the CouchRest API, but my recommendation would be to create documents directly in the replicator database which will give you much more control with this type of advanced requirement:

doc = {
  "source" => "example-database",
  "target"  => "http://example.org/example-database",
  "proxy"  => "http://localhost:8888"
}
db = CouchRest.new.database!('_replicator')
db.save_doc(doc)  # Replication should start automatically
@samlown samlown closed this Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment