fertig-classic-games/example.env

43 lines
1.3 KiB
Bash

# Copy this file to `.env` and fill in real values for local development.
# `.env` is gitignored; `example.env` is committed as the template.
# ---- Server ----
NODE_ENV=development
HOST=0.0.0.0
PORT=3000
# Public base URL used in verification emails and links. No trailing slash.
BASE_URL=http://localhost:3000
# ---- Database ----
# SQLite file path, relative to the server working directory.
DB_PATH=./data/fertig.sqlite
# ---- Auth ----
# Secret for signing session cookies. Generate with:
# node -e "console.log(require('crypto').randomBytes(48).toString('hex'))"
SESSION_SECRET=replace-me-with-a-long-random-string
SESSION_COOKIE_NAME=fcg_sid
SESSION_TTL_DAYS=30
BCRYPT_ROUNDS=12
# ---- Uploads (profile pictures) ----
UPLOAD_DIR=./public/uploads
MAX_UPLOAD_SIZE_MB=5
# Comma-separated list of accepted MIME types.
ALLOWED_UPLOAD_MIME=image/png,image/jpeg,image/webp
# ---- Email verification ----
# If SMTP_HOST is empty, the mailer logs verification links to the server
# console instead of sending email. Useful for local dev.
SMTP_HOST=
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=
SMTP_PASS=
SMTP_FROM="Fertig Classic Games <no-reply@fertigclassicgames.local>"
VERIFICATION_TOKEN_TTL_HOURS=24
# ---- Logging ----
# One of: error, warn, info, debug
LOG_LEVEL=info