I’ve been looking for something like this and I wanted to use it in my own server, after playing a bit with the configuration and using some tips of this thread in french https://forum.tiddlywiki.fr/t/noteself-couchdb/403/4 finally i could configure it in my server
Here are the steps i’ve followed:
-
First we add the couchdb repository:
echo "deb https://apache.bintray.com/couchdb-deb stretch main" \ | sudo tee -a /etc/apt/sources.list
-
Then we update the info of the repositories and install couchdb
sudo apt-get update && sudo apt-get install couchdb
-
After that we have to set the admin password and bind the database port to 0.0.0.0 to be able to connect from everywhere
nano /opt/couchdb/etc/local.ini
-
We restart the service to apply changes
service couchdb restart
- After that we can create the user and password that we’re going to use with our noteself database
curl -X PUT http://admin_user:admin_password@localhost:5984/_users/org.couchdb.user:new_user\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name": "new_user", "password": "user_password", "roles": [], "type": "user"}'
- Then we can go into the Fauxton interface in:
http://server_address:5984/_utils/
-
We log in with the admin user and password that we set while installing couchdb and we create a new database and add permission to the user that we just created
-
Then we can open the empty noteself file and configure the sync configuration fields with:
-
CouchDB URL:
http://server_address:5984
-
Remote database name:
database_name
-
Save config, and click the offline button and log in with the user and password we created before and that’s it
, if we want to use it from other location we just use the same config and user name and password and voila everything is there