53 lines
1.1 KiB
Bash
53 lines
1.1 KiB
Bash
# Database
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_USERNAME=
|
|
DB_PASSWORD=
|
|
DB_NAME=
|
|
|
|
# CapRover production example:
|
|
# DB_HOST=srv-captain--growdb
|
|
|
|
# SMS
|
|
SMS_API_KEY=
|
|
SMS_SENDER=
|
|
SMS_API_BASE_URL=https://api.sms-webservice.com/api/V3
|
|
|
|
# OTP
|
|
OTP_LENGTH=5
|
|
OTP_EXPIRES_IN_MINUTES=5
|
|
OTP_MAX_ATTEMPTS=5
|
|
OTP_COOLDOWN_SECONDS=60
|
|
OTP_DEBUG=false
|
|
|
|
# JWT
|
|
JWT_ACCESS_SECRET=
|
|
JWT_ACCESS_EXPIRES_IN=15m
|
|
JWT_REFRESH_SECRET=
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
# App
|
|
PORT=4000
|
|
NODE_ENV=development
|
|
|
|
# CORS (comma-separated origins, e.g. https://app.example.com)
|
|
# CORS_ORIGIN=
|
|
|
|
# Public URLs used to build short links sent by SMS (e.g. deposit payment/review links)
|
|
FRONTEND_URL=http://localhost:3000
|
|
API_PUBLIC_URL=http://localhost:4000
|
|
|
|
# Zarinpal Payment Gateway
|
|
ZARINPAL_MERCHANT_ID=8bf4bd49-df53-44b3-a58d-b068d4c1ec98
|
|
ZARINPAL_SANDBOX=true
|
|
ZARINPAL_CALLBACK_URL=http://localhost:4000/api/payments/callback
|
|
ZARINPAL_RETURN_URL=http://localhost:3000/payment/result
|
|
|
|
# Object Storage (S3-compatible / Parspack)
|
|
S3_ENDPOINT=https://c274938.parspack.net
|
|
S3_ACCESS_KEY=
|
|
S3_SECRET_KEY=
|
|
S3_BUCKET=c274938
|
|
S3_REGION=us-east-1
|
|
# S3_PUBLIC_BASE_URL=https://c274938.parspack.net
|