33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# Copy to .env and adjust.
|
|
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
# Nginx reverse proxy hop count (express-rate-limit + req.ip). Do not set to true in code; use 1+.
|
|
# TRUST_PROXY_HOPS=1
|
|
|
|
# Database: sqlite (default) or postgres
|
|
DB_DIALECT=sqlite
|
|
SQLITE_STORAGE=./data/luckychit.sqlite
|
|
|
|
# Postgres (only if DB_DIALECT=postgres)
|
|
# DB_HOST=localhost
|
|
# DB_PORT=5432
|
|
# DB_NAME=luckychit
|
|
# DB_USER=luckychit
|
|
# DB_PASSWORD=yourpassword
|
|
# DATABASE_URL=postgresql://user:pass@localhost:5432/luckychit
|
|
|
|
# One-time copy Postgres → SQLite: npm run migrate:pg-to-sqlite
|
|
# Also merges .env.prod / .env.local (without overriding .env) so Postgres creds can live in .env.prod
|
|
# SOURCE_DATABASE_URL=postgresql://user:pass@localhost:5432/luckychit
|
|
|
|
JWT_SECRET=change-me-in-production
|
|
|
|
# Public draw links: /share/draw?t=<jwt> (origin WITHOUT /api). Optional if Nginx sends Host + X-Forwarded-Proto.
|
|
# PUBLIC_BASE_URL=https://your-domain.com
|
|
|
|
# Signed tokens for /share/draw — defaults to permanent links (no JWT expiry)
|
|
# Set to false to use SHARE_TOKEN_TTL_DAYS instead
|
|
# SHARE_DRAW_PERMANENT_LINKS=true
|
|
# SHARE_TOKEN_TTL_DAYS=365
|