Unverified Commit 5c8209d8 by Vincent Martinez Committed by Paul B

set couchdb database to public

parent 5162f3be
...@@ -10,3 +10,9 @@ curl -X PUT http://admin:123abc@couchdb:5984/coops/_design/index \ ...@@ -10,3 +10,9 @@ curl -X PUT http://admin:123abc@couchdb:5984/coops/_design/index \
-d @couchdb-coops-init.json -d @couchdb-coops-init.json
curl -X PUT http://admin:123abc@couchdb:5984/envelop/_design/index \ curl -X PUT http://admin:123abc@couchdb:5984/envelop/_design/index \
-d @couchdb-envelop-init.json -d @couchdb-envelop-init.json
# Set databases to public to allow app to access documents
curl -X PUT http://admin:123abc@couchdb:5984/coops/_security -d '{}'
curl -X PUT http://admin:123abc@couchdb:5984/inventory/_security -d '{}'
curl -X PUT http://admin:123abc@couchdb:5984/envelop/_security -d '{}'
curl -X PUT http://admin:123abc@couchdb:5984/shopping_carts/_security -d '{}'
[couchdb] [couchdb]
single_node=true single_node=true
users_db_security_editable = true
[httpd] [httpd]
enable_cors = true enable_cors = true
[cors] [cors]
credentials = true credentials = true
origins = http://127.0.0.1:8080 origins = *
[replicator] [replicator]
db = _replicator db = _replicator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment