-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
62 lines (41 loc) · 1.79 KB
/
Copy path.env.example
File metadata and controls
62 lines (41 loc) · 1.79 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# DistTaskQueue environment variables
# Copy to .env for local overrides; .env is gitignored.
# See docs/OPERATIONS.md §2 for detailed documentation.
# --- Shared (all binaries) ---
# Postgres connection string.
DATABASE_URL=postgres://dtq:dtq@localhost:5432/dtq?sslmode=disable
# Redis connection string.
REDIS_URL=redis://localhost:6379/0
# Base64-encoded 32-byte AES-256-GCM key for OAuth token encryption.
TOKEN_ENCRYPTION_KEY=<base64 of 32 random bytes — openssl rand -base64 32>
# Google OAuth client credentials. Create a Desktop OAuth 2.0 Client at console.cloud.google.com.
GOOGLE_OAUTH_CLIENT_ID=<your-client-id>
GOOGLE_OAUTH_CLIENT_SECRET=<your-client-secret>
# --- api (cmd/api) ---
# HTTP listen address.
API_ADDR=:8080
# --- worker (cmd/worker) ---
# Shared data volume. Holds mime/, pdf/, attachments/, meta/ subdirectories.
DATA_DIR=/data
# Gotenberg URL for PDF rendering. Used by render-worker stage only.
GOTENBERG_URL=http://gotenberg:3000
# Drive folder ID. Leave empty to use "My Drive" root.
DRIVE_ROOT_FOLDER_ID=
# Slash-delimited folder path under DRIVE_ROOT_FOLDER_ID.
DRIVE_ROOT_PATH=
# BLPOP timeout when waiting for a queued job (seconds).
WORKER_POP_TIMEOUT_SEC=30
# Heartbeat TTL before the sweeper considers a worker dead (seconds).
WORKER_HEARTBEAT_TTL_SEC=15
# Interval for worker heartbeat writes (seconds).
WORKER_HEARTBEAT_INTERVAL_SEC=5
# --- sweeper (cmd/sweeper) ---
# How long a queued job without errors can sit before re-queuing (seconds).
STALE_QUEUED_THRESHOLD_SEC=60
# --- scheduler (cmd/scheduler) ---
# Gmail History API poll interval (seconds).
SCHEDULER_POLL_INTERVAL_SEC=60
# Secondary backfill loop interval (seconds). Set to 0 to disable.
BACKFILL_INTERVAL_SEC=3600
# How far back messages.list looks during backfill (hours).
BACKFILL_WINDOW_HOURS=24