Last active
August 29, 2015 14:25
-
-
Save stephen-hill/81db479954adf31741ab to your computer and use it in GitHub Desktop.
Install and Setup CouchDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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