Files
family_wishlist/.env.example
2026-04-25 17:25:28 +03:00

43 lines
1.2 KiB
Plaintext

# ==========================================
# Database
# ==========================================
DB_HOST=postgres_budget
DB_PORT=5432
DB_NAME=db_family
DB_USER=
DB_PASSWORD=
# Fill DATABASE_URL explicitly; .env files do not expand ${...} automatically for the app.
# For local host-based development, point it to localhost:5432 instead of postgres_budget.
DATABASE_URL=postgresql://<db_user>:<db_password>@postgres_budget:5432/db_family
# ==========================================
# Users (two fixed accounts)
# Generate hashes with:
# pnpm hash-password "YourPlainPassword"
# The plain password is NEVER stored anywhere in the app.
# ==========================================
USER1_USERNAME=alice
USER1_PASSWORD_HASH=
USER1_SLUG=alice
USER1_DISPLAY_NAME=Alice
USER2_USERNAME=bob
USER2_PASSWORD_HASH=
USER2_SLUG=bob
USER2_DISPLAY_NAME=Bob
# ==========================================
# Secrets (generate: openssl rand -hex 32)
# ==========================================
JWT_SECRET=
COOKIE_SECRET=
# ==========================================
# Runtime
# ==========================================
NODE_ENV=development
BACKEND_PORT=3000
PUBLIC_APP_URL=http://localhost:8080
UPLOADS_DIR=./uploads
LOG_LEVEL=info