mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-30 04:53:21 +00:00
Correct setup and server operation guidance
This commit is contained in:
1 parent
2cfa4268cc
commit
e17979e457
11 files changed
+133
-164
No files matched your search
@@ -2,17 +2,16 @@
|
||||
# =============================================================================
|
||||
#
|
||||
# Prerequisites:
|
||||
# 1. Create a tunnel in Cloudflare Zero Trust → Networks → Tunnels
|
||||
# 1. Create a remotely managed tunnel using the current Cloudflare dashboard guide.
|
||||
# 2. Copy the tunnel token to CF_TUNNEL_TOKEN in your .env
|
||||
# 3. Add a public hostname in the tunnel config:
|
||||
# 3. Add a published application route in the dashboard:
|
||||
# Hostname : couchdb.yourdomain.com (or whatever you set COUCHDB_DOMAIN to)
|
||||
# Service : http://couchdb:5984
|
||||
#
|
||||
# Known issue: Cloudflare's 100-second proxy timeout can interrupt CouchDB's
|
||||
# long-polling replication change feed, causing 524 errors.
|
||||
# MITIGATION: In the Obsidian plugin settings, enable:
|
||||
# "Use Request API to avoid inevitable CORS problem"
|
||||
# This switches from long-poll to short-poll mode.
|
||||
# The token-managed Compose profile uses dashboard routing. The local ingress
|
||||
# example below describes locally managed routing and is not that profile's
|
||||
# source of routes. Diagnose 524 errors using current Cloudflare guidance.
|
||||
# The Obsidian Request API setting changes the HTTP adapter, not the sync mode.
|
||||
#
|
||||
# =============================================================================
|
||||
|
||||
@@ -23,7 +22,7 @@ ingress:
|
||||
- hostname: ${COUCHDB_DOMAIN}
|
||||
service: http://couchdb:5984
|
||||
originRequest:
|
||||
# Increase timeouts for CouchDB replication streams
|
||||
# Origin connection settings for this locally managed example
|
||||
connectTimeout: 30s
|
||||
keepAliveTimeout: 90s
|
||||
keepAliveConnections: 100
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
; CouchDB local configuration for Self-hosted LiveSync
|
||||
; This file is volume-mounted into /opt/couchdb/etc/local.d/livesync.ini
|
||||
; This file is volume-mounted into /opt/couchdb/etc/local.ini
|
||||
;
|
||||
; IMPORTANT: Do NOT set require_valid_user here.
|
||||
; CouchDB needs to start without auth to complete its first-run cluster setup
|
||||
; (_users, _replicator databases must be created first).
|
||||
; The couchdb-init service applies auth lockdown via REST API after first-run.
|
||||
; The couchdb-init service configures require_valid_user and CORS through the
|
||||
; REST API during provisioning. Verify that the init service completes before
|
||||
; exposing the database to clients.
|
||||
|
||||
[couchdb]
|
||||
; Max size per document (50MB). Large enough for binary attachments.
|
||||
|
||||
Reference in new issue
Block a user