32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
# --- Core metadata --------------------------------------------------------
|
|
PROJECT_NAME="Test Task CRM"
|
|
VERSION="0.1.0"
|
|
API_V1_PREFIX="/api/v1"
|
|
|
|
# --- Database (used when DATABASE_URL не задан) ---------------------------
|
|
DB_HOST="localhost"
|
|
DB_PORT="5432"
|
|
DB_NAME="test_task_crm"
|
|
DB_USER="postgres"
|
|
DB_PASSWORD="postgres"
|
|
# DATABASE_URL="postgresql+asyncpg://postgres:postgres@localhost:5432/test_task_crm"
|
|
|
|
# --- SQLAlchemy -----------------------------------------------------------
|
|
SQLALCHEMY_ECHO="false"
|
|
|
|
# --- JWT -----------------------------------------------------------------
|
|
JWT_SECRET_KEY="change-me"
|
|
JWT_ALGORITHM="HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES="30"
|
|
REFRESH_TOKEN_EXPIRE_DAYS="7"
|
|
|
|
# --- Redis cache for analytics -------------------------------------------
|
|
REDIS_ENABLED="false"
|
|
REDIS_URL="redis://localhost:6379/0"
|
|
ANALYTICS_CACHE_TTL_SECONDS="120"
|
|
ANALYTICS_CACHE_BACKOFF_MS="200"
|
|
|
|
# --- Frontend (Vite exposes только VITE_*) --------------------------------
|
|
VITE_API_URL="http://localhost:8000"
|
|
VITE_APP_URL="http://localhost:5173"
|