-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
37 lines (29 loc) · 2 KB
/
Copy pathexample.env
File metadata and controls
37 lines (29 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copy this file to .env and fill in the values.
# All variables can also be passed as real environment variables (they take priority).
# ── Auth ───────────────────────────────────────────────────────────────────────
VAULT_USERNAME=your_username_here
VAULT_PASSWORD=your_password_here
# Signing key for session cookies. Generate with:
# python -c "import secrets; print(secrets.token_hex(32))"
# If unset a random key is used — everyone is logged out on every restart.
FLASK_SECRET_KEY=
# ── Notes source ───────────────────────────────────────────────────────────────
# "local" — read from a directory on disk (default)
# "remote" — read from CouchDB (Obsidian LiveSync)
NOTES_MODE=local
# Path to your Obsidian vault (local mode).
# Docker: set this to the HOST path; the container always mounts it at /vault.
VAULT_PATH=/path/to/your/vault
# ── Session / HTTPS ────────────────────────────────────────────────────────────
# Set to true when serving over HTTPS (enables the Secure cookie flag).
VAULT_HTTPS=false
# How many days a login session lasts (default 7).
VAULT_SESSION_DAYS=7
# ── Docker ─────────────────────────────────────────────────────────────────────
# Host port to expose (docker-compose only, default 5000).
PORT=5000
# ── Remote / CouchDB (NOTES_MODE=remote) ──────────────────────────────────────
# COUCHDB_URL=http://127.0.0.1:5984
# COUCHDB_DB=obsidian
# COUCHDB_USER=
# COUCHDB_PASSWORD=