mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
46 lines
1.8 KiB
Bash
46 lines
1.8 KiB
Bash
# Path to the SAME sqlite file Django uses (strangler: both backends share one DB).
|
|
# Relative paths resolve from the process CWD; absolute is safest.
|
|
DATABASE_URL=sqlite://../backend/db.sqlite3?mode=rwc
|
|
|
|
# MUST equal Django's SECRET_KEY so SimpleJWT tokens verify across both backends.
|
|
SECRET_KEY=change-me-to-match-django
|
|
|
|
# Where this service binds.
|
|
BIND_ADDR=0.0.0.0:8001
|
|
|
|
# Media URL prefix Django serves under (matches MEDIA_URL = "media/").
|
|
MEDIA_URL=media/
|
|
|
|
# Filesystem root for uploaded media (avatars). Must point at the SAME directory
|
|
# Django uses (MEDIA_ROOT) so both backends read/write the same files.
|
|
MEDIA_ROOT=../backend/media
|
|
|
|
# Base URL of the frontend, used to build email links (verify-email, reset).
|
|
# Matches Django's FRONTEND_URL.
|
|
FRONTEND_URL=http://localhost:5173
|
|
|
|
# --- Email (lettre) -------------------------------------------------------
|
|
# Leave EMAIL_HOST unset to log emails to the console (dev). Set it to enable
|
|
# real SMTP. These mirror Django's EMAIL_* settings.
|
|
#EMAIL_HOST=smtp.example.com
|
|
EMAIL_PORT=587
|
|
EMAIL_USE_TLS=true
|
|
EMAIL_USE_SSL=false
|
|
#EMAIL_HOST_USER=noreply@example.com
|
|
#EMAIL_HOST_PASSWORD=change-me
|
|
# Accept self-signed SMTP certs (mirrors api.email_backend.InsecureEmailBackend).
|
|
EMAIL_SKIP_CERT_VERIFICATION=false
|
|
# From address; falls back to EMAIL_HOST_USER then noreply@localhost.
|
|
#DEFAULT_FROM_EMAIL=noreply@example.com
|
|
|
|
# Set `Secure` on auth cookies (true in prod, like Django's JWT_AUTH_COOKIE_SECURE).
|
|
JWT_AUTH_COOKIE_SECURE=false
|
|
|
|
# In-process job scheduler (replaces Celery beat). MUST stay false while
|
|
# Django's beat container is still running — otherwise scheduled jobs fire twice
|
|
# against the shared api_job table. Set true ONLY after stopping Django beat.
|
|
ENABLE_SCHEDULER=false
|
|
|
|
# tracing filter
|
|
RUST_LOG=info,holy_backend_rs=debug,sea_orm=warn
|