-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
35 lines (30 loc) · 1.94 KB
/
Copy path.env.example
File metadata and controls
35 lines (30 loc) · 1.94 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
# ─── Server Configuration ─────────────────────────────────────────────────────
ENVIRONMENT=development
GRPC_PORT=9090
HTTP_PORT=8080
LOG_LEVEL=info
APP_URL=http://localhost:8080
# ─── Infrastructure ─────────────────────────────────────────────────────────
DATABASE_URL=postgres://postgres:postgres@postgres:5432/todo_app?sslmode=disable
MEMCACHED_URL=memcached:11211
REDIS_URL=redis:6379
# ─── Authentication & Security ──────────────────────────────────────────────
# Token key must be exactly 32 characters
TOKEN_SYMMETRIC_KEY=12345678901234567890123456789012
ACCESS_TOKEN_DURATION=15m
REFRESH_TOKEN_DURATION=24h
# ─── OAuth 2.0 (Google) ─────────────────────────────────────────────────────
# Replace these with your actual Google Cloud Console credentials
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:8080/auth/google/callback
# ─── SMTP Services ──────────────────────────────────────────────────────────
# Defaults target the Mailpit local infrastructure
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM=noreply@todo-app.local
# ─── Background Scheduling ──────────────────────────────────────────────────
# Quartz-style cron definition (includes seconds precision)
REMINDER_CRON="* * * * * *"