solar/backend/.env.example

32 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Database (docker-compose overrides for local runs)
# DATABASE_URL=postgresql+asyncpg://user:pass@host:5432/dbname
# Solar production estimate (kWh per location)
# Installed capacity = SOLAR_PANEL_COUNT × SOLAR_PANEL_WP → kWp
SOLAR_PANEL_COUNT=4
SOLAR_PANEL_WP=250
# Performance ratio (typical 0.750.85)
SOLAR_PERFORMANCE_RATIO=0.8
# Social posting (X / Instagram): character limits and max posts per platform per day
# X_MAX_POST_LENGTH=280
# INSTAGRAM_MAX_CAPTION_LENGTH=2200
# MAX_POSTS_PER_PLATFORM_PER_DAY=5
# PR frontend (pr.degelas.be): JWT auth for scheduled-posts, campaigns, browser
# PR_AUTH_ENABLED=1
# PR_USER=pr-admin
# PR_PASSWORD=changeme
# PR_JWT_SECRET=your-long-random-secret
# Public dashboard auth (degelas.be): JWT for logged-in users; tiers free | pro
# AUTH_JWT_SECRET=another-long-random-secret
# AUTH_JWT_EXPIRY_SECONDS=604800
# AUTH_REGISTER_OPEN=1
# ADMIN_SECRET=optional-for-PUT-/auth/admin/users/{id}/tier
# Optional: create/update one user when the API starts (use only in private .env)
# SEED_ADMIN_EMAIL=you@example.com
# SEED_ADMIN_PASSWORD=
# SEED_ADMIN_TIER=admin # optional; free | pro | admin — omit for default admin tier when email is set