-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (35 loc) · 1.24 KB
/
Copy path.env.example
File metadata and controls
47 lines (35 loc) · 1.24 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
# Application
APP_ENV=development
LISTEN_ADDR=0.0.0.0:8080
# PostgreSQL
POSTGRES_USER=max_dashboard
POSTGRES_PASSWORD=max_dashboard_dev
POSTGRES_DB=max_dashboard
# Database
DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
DATABASE_MAX_CONNECTIONS=50
DATABASE_MIN_CONNECTIONS=5
DATABASE_ACQUIRE_TIMEOUT_SECS=5
# Auth
JWT_SECRET=change-me-to-a-random-string-at-least-32-bytes
JWT_ACCESS_TTL_SECS=900
REFRESH_TOKEN_TTL_DAYS=30
REFRESH_TOKEN_HMAC_SECRET=change-me-to-another-random-string-at-least-32
# Invites
INVITE_TOKEN_HMAC_SECRET=change-me-to-yet-another-random-string-32
# HMAC secret for bot API key hashing (min 32 bytes)
BOT_API_KEY_HMAC_SECRET=your-bot-api-key-hmac-secret-min-32-bytes
# Encryption (64 hex chars = 32 bytes)
BOT_TOKEN_ENCRYPTION_KEY=<run: openssl rand -hex 32>
# Webhook
WEBHOOK_BASE_URL=https://your-domain.com
# CORS
CORS_ALLOWED_ORIGINS=http://localhost:3000
# Max API
MAX_API_BASE_URL=https://platform-api.max.ru
# Polling
POLLING_CONCURRENCY=50
# Logging
RUST_LOG=info,max_dashboard_backend=debug
# ── Frontend ──────────────────────────────────────────
NEXT_PUBLIC_API_URL=http://localhost:8080