With DataBaseREdis

This commit is contained in:
2026-01-28 00:49:37 +03:00
parent 4b01c2d4de
commit af62de5569
10 changed files with 1309 additions and 24 deletions

19
.env.example Normal file
View File

@ -0,0 +1,19 @@
# Star Wars Hearthstone - Environment Variables
# Использовать Redis (true/false)
# Если false или не установлен, приложение работает без БД
USE_REDIS=true
# URL Redis (если USE_REDIS=true)
# Для Docker: redis://redis:6379
# Для локального: redis://localhost:6379
REDIS_URL=redis://redis:6379
# Секретный ключ для сессий (измените в продакшене!)
SESSION_SECRET=star-wars-hearthstone-secret-key-change-in-production
# Порт сервера
PORT=3542
# Окружение (production/development)
NODE_ENV=production