Skip to content

Instantly share code, notes, and snippets.

@stephen-hill
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephen-hill/81db479954adf31741ab to your computer and use it in GitHub Desktop.
Save stephen-hill/81db479954adf31741ab to your computer and use it in GitHub Desktop.
Install and Setup CouchDB
# On Vivid, enable the proposed repository
# deb http://archive.ubuntu.com/ubuntu/ vivid-proposed restricted main multiverse universe
sudo apt-get install couchdb crudini
cd /etc/couchdb
sudo openssl req -new -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem
sudo crudini --set /etc/couchdb/local.ini daemons httpsd "{couch_httpd, start_link, [https]}"
sudo crudini --set /etc/couchdb/local.ini ssl cert_file "/etc/couchdb/cert.pem"
sudo crudini --set /etc/couchdb/local.ini ssl key_file "/etc/couchdb/key.pem"
# This is buggy, set password via Futon
# sudo crudini --set /etc/couchdb/local.ini admins admin "password"
sudo service restart
# https://couchdb.tunk.io:6984/_utils/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment