Obsidian Cloud Vault
Obsidian setup using self-hosted CouchDB or Cloudflared R2 DB.
Table of Contents
CouchDB
This will be running on a local server and tunneled to pangolin proxy. If you are new to these, visit this link. I’ve setup its subdomain to couchdb.yourdomain.com, to access the admin page navigate to (/_utils) https://ccouchdb.yourdomain.com/_utils/.
compose.yaml
1version: '3.8'
2
3services:
4 couchdb:
5 image: couchdb:latest
6 container_name: couchdb
7 restart: always
8 ports:
9 - "5984:5984"
10 volumes:
11 - /srv/volume/couchdb/data:/opt/couchdb/data
12 - couchdb_config:/opt/couchdb/etc/local.d
13 environment:
14 COUCHDB_USER: your_username
15 COUCHDB_PASSWORD: your_password
16 networks:
17 - pangolin
18volumes:
19 couchdb_config:
20networks:
21 pangolin:
22 name: pangolin
23 external: true
Cloudflare R2 Database
Go to your cloudflare dashboard and navigate to Database. Create R2 bucket, once created. Create API key to this bucket. Take note and make sure not to expose it in public domain. If you are broke like myself, free tier has a lot of limitation. Just monitor your storage from time-to-time, specially if you uploaded big files in obsidian.
- 10 GB-month / month
- 1 million requests / month
- 10 million requests / month
Obsidian Setup
Install the app. Navigate to setting and then enable community plugin. Then browse plugin, install Self-hosted LiveSync. Once installed, run the setup wizard.