-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (35 loc) · 1.26 KB
/
Copy path.env.example
File metadata and controls
49 lines (35 loc) · 1.26 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
# Whispr server configuration
# The server reads these from its environment; it does not load a .env file by
# itself. Pass them with e.g. `docker run --env-file`, a systemd
# EnvironmentFile (see deploy/systemd), or `set -a; . ./.env; set +a`.
# Server bind address (keep 127.0.0.1 behind a TLS reverse proxy)
HOST=127.0.0.1
# Server port
PORT=8080
# SQLite database path
DATABASE_PATH=whispr.db
# JWT signing secret (min 32 bytes, generated automatically if empty)
JWT_SECRET=
# Optional: separate key for encrypting TOTP seeds (min 32 bytes)
TOTP_ENCRYPTION_KEY=
# Access and refresh token lifetimes
JWT_ACCESS_TTL=24h
JWT_REFRESH_TTL=4320h
# Allowed CORS/WebSocket origins (comma-separated)
ALLOWED_ORIGINS=http://localhost:*
# Trusted proxies for X-Forwarded-For (comma-separated)
TRUSTED_PROXIES=127.0.0.1,::1
# TLS certificate and key (must be set together for native TLS)
TLS_CERT_FILE=
TLS_KEY_FILE=
# Application log file path (empty = stdout/journalctl only)
LOG_FILE=
# Upload storage directory
UPLOAD_DIR=uploads
# Max encrypted attachment storage in MB (0 = unlimited)
ATTACHMENT_STORAGE_LIMIT_MB=360
# Log level: debug, info, warn, error
LOG_LEVEL=warn
# Firebase Cloud Messaging (optional, for Android push notifications)
FCM_CREDENTIALS_FILE=
FCM_PROJECT_ID=