31 lines
967 B
Plaintext
31 lines
967 B
Plaintext
# Copy to .env and adjust.
|
|
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
|
|
# 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
|
|
# SOURCE_DATABASE_URL=postgresql://user:pass@localhost:5432/luckychit
|
|
|
|
JWT_SECRET=change-me-in-production
|
|
|
|
# Public draw result links (no login). Use your API origin WITHOUT /api — e.g. https://api.example.com
|
|
# Dev fallback: if unset and NODE_ENV!=production, defaults to http://localhost:PORT
|
|
PUBLIC_BASE_URL=http://localhost:3000
|
|
|
|
# Signed tokens for /share/draw/:token — 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
|