feat: add .env.example file with environment variable configurations

This commit is contained in:
Artem Kashaev
2025-12-01 16:09:58 +05:00
parent dcd8bd30f6
commit eecb74c523
2 changed files with 178 additions and 27 deletions
+31
View File
@@ -0,0 +1,31 @@
# --- 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"