enhance security and performance: add rate limiting, session validation, and logging; update environment variables
Some checks failed
Build Images and Deploy / Update-PROD-Stack (push) Failing after 8s

This commit is contained in:
2026-03-24 02:47:53 -04:00
parent c7bbe9a3c1
commit 1665019e8e
7 changed files with 152 additions and 13 deletions

View File

@@ -2,12 +2,21 @@
PORT=3000
NODE_ENV=production
BASE_URL=https://loot-hunt.com
TRUST_PROXY=false
# Session
SESSION_SECRET=change-me-to-a-random-string
SESSION_SECRET=change-me-to-a-random-string-at-least-32-characters-long
# Database (SQLite file path)
DB_PATH=./data/loot-hunt.db
# Uploads directory
UPLOADS_DIR=./data/uploads
# Logging
DATA_PATH=./data
LOG_LEVEL=info
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100