-
Notifications
You must be signed in to change notification settings - Fork 0
Creating the app database
Bradley Saul edited this page Dec 9, 2018
·
11 revisions
How I finally got a server with couchdb up and running:
- Launch this bitnami AMI: https://bitnami.com/stack/couchdb/cloud/aws
- Getting credentials:
- Set up ports: 5498 & 6498
- Follow these directions:
-
https://docs.bitnami.com/aws/infrastructure/couchdb/administration/connect-remotely/
- open 5984 and 6984 in ec2 settings
-
https://docs.bitnami.com/aws/infrastructure/couchdb/administration/enable-ssl/
- one (major) gotcha:
server.crt
andserver.key
are not already created. - so create them
-
sudo openssl genrsa
--> Then paste that into/opt/bitnami/couchdb/conf/server.key
sudo openssl req -new -x509 -key /opt/bitnami/couchdb/conf/server.key -out /opt/bitnami/couchdb/conf/server.crt -days 1095
- then restart:
sudo /opt/bitnami/ctlscript.sh restart couchdb
- then check:
curl https://127.0.0.1:6984/
-
- one (major) gotcha:
-
https://docs.bitnami.com/aws/infrastructure/couchdb/administration/connect-remotely/
Then
-
Create admin user/pass
-
--> Config
-
--> CORS
-
--> Enable CORS
-
--> Main config
- --> couch_peruser
- --> enable : true
- --> daemons
- httpd: {couch_httpd, start_link, [https]}
- ssl (https://wiki.apache.org/couchdb/How_to_enable_SSL; http://docs.couchdb.org/en/stable/config/http.html)
- enable : true
- cert_file = /full/path/to/server_cert.pem
- key_file = /full/path/to/server_key.pem
- --> couch_peruser
Also set up CORS - allowable domains (?)