Home

Awesome

CouchDB with Let's encrypt's SSL certificate for Self-hosted LiveSync.

What is this

Requirements

Limitations

How to Use

  1. Clone the repository, git clone git@github.com:vrtmrz/self-hosted-livesync-server.git
  2. Create Caddy's network: docker network create caddy
  3. Configure files
    1. caddy.handle_path_1: /e=_/* on docker-compose.yml
      You have to change this e=_ to something your favorite secret word.
    2. authentication_redirect = /e=_/_utils/session.html on conf/local.ini
      change e=_ too, as same as you changed on 3.1..
  4. Set environment variables.
namevalueexample
COUCHDB_SERVERYour server's domaindb.example.net
COUCHDB_USERThe account name you want to accesstestuser
COUCHDB_PWThe passwordtestpassword
  1. Run docker-compose -f docker-compose.yml up
    Note: If you using an arm machine, docker-compose -f docker-compose.yml -f docker-compose.arm.yml up
  2. Check from the browser, open https://COUCHDB_SERVER/e=_/_utils, and try to authenticate.
  3. Check from Self-hosted LiveSync, as like below
namevalueexample
URIhttps://COUCHDB_SERVER/e=_https://db.example.net/e=_
UsernameCOUCHDB_USERtestuser
PasswordCOUCHDB_PWtestpassword
Database nameAs you liketest
  1. If you could access and use the database, docker-compose -f docker-compose.yml start to enable your server. Note: or docker-compose -f docker-compose.yml -f docker-compose.arm.yml start.

License

MIT