This repo contains a ready-to-use server for the Obsidian LiveSync plugin. The server is hosted via Docker and automatically secured over HTTPS (certificates created by Let's Encrypt).
The setup will use port 80 (for Let's Encrypt only) and a configurable HTTPS port (443 by default).
Note
This setup is for servers that can be directly reached from the Internet. It's not meant for intranet servers hidden behind Cloudflare tunnels or similar technologies.
Create secrets.couchdb.env file in the root directory (i.e. the directory where the docker-compose.yml file is located):
COUCHDB_PASSWORD=<your-couchdb-admin-password>
Create secrets.proxy.env file:
SERVER_DOMAIN=<your-domain>
Note
The specified domain name (<your-domain>) must resolve to the IP address of the server.
After that restrict permissions on the secret files:
> chmod 0600 secrets*.envTo run the server, run:
> docker compose up -dThis will make the CouchDB instance accessible at:
https://<your-domain>/couchdb/
- The LiveSync plugin automatically creates databases inside the CouchDB instance. As such, it needs the admin password.