Alembic migration 86c7b1d6a710 adds is_admin BOOLEAN DEFAULT FALSE to the roles table. Fixes login crash after M-3 change: psycopg2.errors.UndefinedColumn: column roles.is_admin does not exist Also adds _ensure_roles_is_admin_column() as an additive migration safety net for environments that don't run alembic automatically. To apply: cd backend && source .venv/bin/activate && alembic upgrade head
23 lines
1002 B
Plaintext
23 lines
1002 B
Plaintext
# ── Required: Secrets ──
|
|
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
AUTH_SECRET_KEY=change-me-to-a-random-secret
|
|
ENCRYPTION_KEY=change-me-to-a-fernet-key
|
|
|
|
# ── Required: Database ──
|
|
# PostgreSQL via docker-compose:
|
|
DATABASE_URL=postgresql+psycopg2://postgres:postgres@localhost:5432/ss_tools
|
|
AUTH_DATABASE_URL=postgresql+psycopg2://postgres:postgres@localhost:5432/ss_tools
|
|
TASKS_DATABASE_URL=postgresql+psycopg2://postgres:postgres@localhost:5432/ss_tools
|
|
# Run after pulling: cd backend && source .venv/bin/activate && alembic upgrade head
|
|
|
|
# ── Optional ──
|
|
ALLOWED_ORIGINS=http://localhost:5173
|
|
SESSION_SECRET_KEY=change-me-to-a-random-secret
|
|
FEATURES__DATASET_REVIEW=true
|
|
FEATURES__HEALTH_MONITOR=true
|
|
APP_TIMEZONE=Europe/Moscow
|
|
|
|
# HSTS — включать только при настроенном HTTPS (nginx/ingress)
|
|
# Включение без сертификатов сломает доступ к сайту!
|
|
# FORCE_HTTPS=true
|