Fix Obsidian sync setup in Docker by running login and sync-setup before sync
Replace OBSIDIAN_AUTH_TOKEN with OBSIDIAN_EMAIL/OBSIDIAN_PASSWORD and run the full ob login → sync-setup → sync sequence on container startup so fresh containers authenticate properly instead of failing with "Run 'ob sync-setup' first". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -94,8 +94,9 @@ EMAIL_HMAC_SECRET=
|
||||
MAILGUN_SIGNATURE_VALIDATION=true
|
||||
|
||||
# Obsidian Configuration (headless sync)
|
||||
# Auth token from Obsidian account (Settings → Account → API token)
|
||||
OBSIDIAN_AUTH_TOKEN=your-obsidian-auth-token
|
||||
# Obsidian account credentials (used for `ob login` on container startup)
|
||||
OBSIDIAN_EMAIL=your-obsidian-email
|
||||
OBSIDIAN_PASSWORD=your-obsidian-password
|
||||
# Vault ID to sync (found in Obsidian sync settings)
|
||||
OBSIDIAN_VAULT_ID=your-vault-id
|
||||
# End-to-end encryption password (if vault uses E2E encryption)
|
||||
|
||||
Reference in New Issue
Block a user