Files
mtusi2026lab2/.env.example
T

15 lines
579 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
SESSION_TTL_SECONDS=3600
# DSN для PostgreSQL. В compose.yaml подставляется из secrets/database_url.
DATABASE_URL=postgresql://messenger:messenger@postgres:5432/messenger
# Redis используется как кэш сессий; источник истины — PostgreSQL.
CACHE_URL=redis://redis:6379/0
# Таймауты (секунды) для БД и Redis.
DB_POOL_MIN=1
DB_POOL_MAX=10
DB_CONNECT_TIMEOUT=3
REDIS_SOCKET_TIMEOUT=1