forked from Nova-reward/Nova-Rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.prod.example
More file actions
73 lines (64 loc) · 3.67 KB
/
Copy path.env.prod.example
File metadata and controls
73 lines (64 loc) · 3.67 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
68
69
70
71
72
73
# .env.prod — Production environment variables
# Copy to novaRewards/.env.prod and fill in real values.
# Never commit the real .env.prod file.
# In production, prefer injecting secrets via AWS Secrets Manager / Vault.
# ── Stellar ──────────────────────────────────────────────────────────────────
STELLAR_NETWORK=mainnet
HORIZON_URL=https://horizon.stellar.org
ISSUER_PUBLIC=G...
ISSUER_SECRET=S...
DISTRIBUTION_PUBLIC=G...
DISTRIBUTION_SECRET=S...
# ── PostgreSQL ────────────────────────────────────────────────────────────────
POSTGRES_USER=nova
POSTGRES_PASSWORD=change-me-strong-prod-password
POSTGRES_DB=nova_rewards
DATABASE_URL=postgresql://nova:change-me-strong-prod-password@postgres:5432/nova_rewards
# Use a dedicated migration user with limited privileges
DATABASE_MIGRATE_URL=postgresql://nova_migrate:change-me-migrate-password@postgres:5432/nova_rewards
# ── Redis ─────────────────────────────────────────────────────────────────────
REDIS_PASSWORD=change-me-strong-redis-password
REDIS_URL=redis://:change-me-strong-redis-password@redis:6379
REDIS_MODE=single
REDIS_MAXMEMORY=512mb
# ── Backend ───────────────────────────────────────────────────────────────────
PORT=3001
NODE_ENV=production
ALLOWED_ORIGIN=https://app.novarewards.app
JWT_SECRET=change-me-long-random-prod-jwt-secret
JWT_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
FIELD_ENCRYPTION_KEY=replace-with-64-char-hex-string
# ── Rate Limiting ─────────────────────────────────────────────────────────────
RATE_LIMIT_WHITELIST=127.0.0.1,::1
RL_GLOBAL_MAX=100
RL_AUTH_MAX=5
RL_USER_MAX=200
RL_SEARCH_MAX=30
RL_WEBHOOK_MAX=60
RL_REWARDS_MAX=20
RL_ADMIN_MAX=120
# ── Frontend ──────────────────────────────────────────────────────────────────
NEXT_PUBLIC_API_URL=https://api.novarewards.app
NEXT_PUBLIC_HORIZON_URL=https://horizon.stellar.org
NEXT_PUBLIC_STELLAR_NETWORK=mainnet
NEXT_PUBLIC_ISSUER_PUBLIC=G...
# ── Email ─────────────────────────────────────────────────────────────────────
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM=noreply@novarewards.app
SENDGRID_API_KEY=change-me
# ── Backups ───────────────────────────────────────────────────────────────────
BACKUP_RETAIN_DAYS=30
BACKUP_S3_BUCKET=nova-rewards-prod-backups
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=change-me
AWS_SECRET_ACCESS_KEY=change-me
# ── Misc ──────────────────────────────────────────────────────────────────────
DAILY_BONUS_POINTS=10
REFERRAL_BONUS_POINTS=100
WEBHOOK_TIMEOUT_MS=10000
WEBHOOK_RETRY_INTERVAL_MS=60000
WEBHOOK_MAX_ATTEMPTS=5