-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.production.example
More file actions
67 lines (53 loc) · 2.49 KB
/
.env.production.example
File metadata and controls
67 lines (53 loc) · 2.49 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
63
64
65
66
67
# MultiWA Gateway - Production Environment
# Copy this to .env.production and fill in your values
# ─── Database ─────────────────────────────────────
DATABASE_URL=postgresql://multiwa:CHANGE_ME@postgres:5432/multiwa
# ─── Redis ────────────────────────────────────────
REDIS_URL=redis://:CHANGE_ME@redis:6379
REDIS_PASSWORD=CHANGE_ME
# ─── Security (REQUIRED - generate with: openssl rand -base64 32) ───
JWT_SECRET=CHANGE_ME
JWT_REFRESH_SECRET=CHANGE_ME
# Encryption key for settings at rest (generate with: openssl rand -hex 32)
ENCRYPTION_KEY=CHANGE_ME
# ─── API ──────────────────────────────────────────
API_PORT=3000
API_HOST=0.0.0.0
NODE_ENV=production
CORS_ORIGINS=https://wa.yourdomain.com
# ─── Admin Dashboard ─────────────────────────────
ADMIN_URL=https://wa.yourdomain.com
API_URL=https://api.yourdomain.com
# ─── S3 / MinIO Storage ──────────────────────────
S3_ENDPOINT=http://minio:9000
S3_PORT=9000
S3_USE_SSL=false
S3_ACCESS_KEY=CHANGE_ME
S3_SECRET_KEY=CHANGE_ME
S3_BUCKET=multiwa
S3_REGION=us-east-1
# ─── WhatsApp Engine ─────────────────────────────
WHATSAPP_ENGINE=whatsapp-web.js
CHROMIUM_PATH=/usr/bin/chromium
# ─── Database Credentials (for docker-compose) ───
DB_USER=multiwa
DB_PASSWORD=CHANGE_ME
DB_NAME=multiwa
# ─── Nginx (for docker-compose.production.yml) ───
HTTP_PORT=80
HTTPS_PORT=443
# ─── Rate Limiting ───────────────────────────────
RATE_LIMIT_SHORT=10/1s
RATE_LIMIT_MEDIUM=100/1m
RATE_LIMIT_LONG=1000/1h
# ─── Logging ─────────────────────────────────────
LOG_LEVEL=warn
# ─── Optional: Email Notifications ───────────────
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your@email.com
# SMTP_PASS=your-app-password
# SMTP_FROM=noreply@yourdomain.com
# ─── Optional: Sentry ────────────────────────────
# SENTRY_DSN=https://key@sentry.io/project