-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathformto.env.example
More file actions
34 lines (28 loc) · 1.9 KB
/
Copy pathformto.env.example
File metadata and controls
34 lines (28 loc) · 1.9 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
# ═══════════════════════════════════════════════════════════
# FormTo — Configuration
# Copy this file: cp formto.env.example formto.env
# Then edit formto.env with your real values.
# ═══════════════════════════════════════════════════════════
# Your domain (must point to this server's IP via DNS)
DOMAIN=forms.example.com
# ─── Database ───────────────────────────────────────────────
# Strong random password for PostgreSQL
POSTGRES_PASSWORD=change_me_strong_password
# ─── Auth ───────────────────────────────────────────────────
# Secret key for signing JWTs — generate with:
# openssl rand -hex 32
JWT_SECRET=change-me-generate-with-openssl-rand-hex-32
# ─── Email (SMTP) ───────────────────────────────────────────
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your@gmail.com
# For Gmail: use an App Password (not your main password)
# https://myaccount.google.com/apppasswords
SMTP_PASS=your-app-password
FROM_EMAIL=FormTo <noreply@forms.example.com>
# ─── Uploads ────────────────────────────────────────────────
MAX_FILE_SIZE_MB=10
# ─── Logging ────────────────────────────────────────────────
# Options: fatal, error, warn, info, debug, trace
LOG_LEVEL=info