Skip to content

CouchDB configuration

Yury Chernushenko edited this page Jul 30, 2014 · 8 revisions

1.Install CouchDB

2.Enable CORS:

export HOST=http://yury:secret@local:5984   
curl -X PUT $HOST/_config/httpd/enable_cors -d '"true"'
// Do twice if false  
curl -X PUT $HOST/_config/cors/origins -d '"*"'  
curl -X PUT $HOST/_config/cors/credentials -d '"true"'  
curl -X PUT $HOST/_config/cors/methods -d '"GET, PUT, POST, HEAD, DELETE"'  
curl -X PUT $HOST/_config/cors/headers -d '"accept, authorization, content-type, origin"'  

3.CouchDB admin panel:

http://localhost:5984/_utils/
http://localhost:5984/_utils/fauxton/
Clone this wiki locally