forked from Nova-reward/Nova-Rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.staging.example
More file actions
71 lines (62 loc) · 3.55 KB
/
Copy path.env.staging.example
File metadata and controls
71 lines (62 loc) · 3.55 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
# .env.staging — Staging environment variables
# Copy to novaRewards/.env.staging and fill in real values.
# Never commit the real .env.staging file.
# ── Stellar ──────────────────────────────────────────────────────────────────
STELLAR_NETWORK=testnet
HORIZON_URL=https://horizon-testnet.stellar.org
ISSUER_PUBLIC=G...
ISSUER_SECRET=S...
DISTRIBUTION_PUBLIC=G...
DISTRIBUTION_SECRET=S...
# ── PostgreSQL ────────────────────────────────────────────────────────────────
POSTGRES_USER=nova_staging
POSTGRES_PASSWORD=change-me-staging
POSTGRES_DB=nova_rewards_staging
DATABASE_URL=postgresql://nova_staging:change-me-staging@postgres:5432/nova_rewards_staging
DATABASE_MIGRATE_URL=postgresql://nova_staging:change-me-staging@postgres:5432/nova_rewards_staging
# ── Redis ─────────────────────────────────────────────────────────────────────
REDIS_PASSWORD=
REDIS_URL=redis://redis:6379
REDIS_MODE=single
REDIS_MAXMEMORY=128mb
# ── Backend ───────────────────────────────────────────────────────────────────
PORT=3001
NODE_ENV=staging
ALLOWED_ORIGIN=https://staging.novarewards.app
JWT_SECRET=change-me-staging-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://staging-api.novarewards.app
NEXT_PUBLIC_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_ISSUER_PUBLIC=G...
# ── Email ─────────────────────────────────────────────────────────────────────
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=staging@novarewards.app
SMTP_PASSWORD=change-me
EMAIL_FROM=staging@novarewards.app
SENDGRID_API_KEY=
# ── Backups ───────────────────────────────────────────────────────────────────
BACKUP_RETAIN_DAYS=7
BACKUP_S3_BUCKET=nova-rewards-staging-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