Files
consume-rs/.env.example
T
2026-06-17 00:21:00 +02:00

30 lines
1.4 KiB
Bash

# ── Postgres ────────────────────────────────────────────────
POSTGRES_USER=shoplist
POSTGRES_PASSWORD=change_me_in_prod
POSTGRES_DB=shoplist
# ── Backend ─────────────────────────────────────────────────
# DATABASE_URL is built from the values above inside docker-compose.
DATABASE_URL=postgres://shoplist:change_me_in_prod@localhost:5432/shoplist
BACKEND_HOST=0.0.0.0
BACKEND_PORT=8080
# 64+ hex chars. Generate: openssl rand -hex 32
SESSION_SECRET=please_generate_a_long_random_secret_at_least_64_chars_xxxxxxxxxx
# Public URL of the frontend, used to build verification/reset links.
PUBLIC_APP_URL=http://localhost:5173
# Comma-separated allowed CORS origins.
CORS_ORIGINS=http://localhost:5173
# ── SMTP (mail notifications + verification) ────────────────
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=postmaster@example.com
SMTP_PASSWORD=change_me
SMTP_FROM="Shopping List <no-reply@example.com>"
# starttls | tls | none (none = dev only)
SMTP_SECURITY=starttls
# ── Frontend ────────────────────────────────────────────────
# Where the SvelteKit app reaches the backend (server-side).
PUBLIC_API_BASE=http://localhost:8080