Files
ems/.env.example
Dusan Vojacek 4bc9d86667
Some checks failed
test / smoke-test (push) Successful in 7s
deploy / deploy (push) Has been cancelled
spusteni jen pres WG
2026-04-05 00:50:57 +02:00

47 lines
1.9 KiB
Plaintext
Raw 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.
# ============================================================
# EMS Platform environment proměnné
# Zkopírovat jako .env a doplnit hodnoty
# NIKDY necommitovat .env do gitu!
# ============================================================
# ---- Deploy / přístup k UI (produkce, deploy/docker-compose.yml) ----
# Lokálně na serveru jen přes SSH: nech výchozí (127.0.0.1) EMS_PUBLIC_BASE může zůstat prázdné (default v compose).
#
# Přístup jen přes WireGuard: na serveru zjisti IP wg0, např. ip -4 addr show wg0
EMS_FRONTEND_BIND=10.200.200.1 # IP WireGuard rozhraní serveru (ne veřejná IP)
# EMS_PUBLIC_BASE=http://10.0.0.1:8080 # stejná báze jako v prohlížeči (bez koncového /)
# Volitelně Caddy na wg0: pak EMS_PUBLIC_BASE=https://ems.internal a frontend bind nechat 127.0.0.1 + reverse_proxy v Caddy.
# ---- PostgreSQL ----
DB_USER=ems_user
DB_PASSWORD=change_me_strong_password
# ---- PostgREST ----
POSTGREST_JWT_SECRET=change_me_jwt_secret_min_32_chars
# PostgREST anonymní role (viz db/migration/V009__postgrest_roles.sql + R__z_postgrest_ems_anon_grants.sql).
POSTGREST_ANON_ROLE=ems_anon
# ---- OTE CZ import ----
# Veřejný chart endpoint; kód doplňuje ?report_date=YYYY-MM-DD&time_resolution=PT15M
OTE_API_URL=https://www.ote-cr.cz/cs/kratkodobe-trhy/elektrina/denni-trh/@@chart-data
EUR_CZK_RATE=25.0 # přepočet EUR/MWh → CZK/kWh (EUR/MWh * rate / 1000)
# ---- Weather / Forecast ----
OPEN_METEO_API_URL=https://api.open-meteo.com/v1/forecast
# ---- Loxone ----
LOXONE_USER=admin
LOXONE_PASSWORD=change_me
# ---- Alerty ----
DISCORD_WEBHOOK_URL= # Discord webhook URL pro alerty, prázdné = vypnuto
# ---- Telemetrie ----
TELEMETRY_POLL_INTERVAL_SEC=60
# ---- Plánování ----
PLANNING_HORIZON_HOURS=36
PLANNING_HP_MAX_COST_CZK_KWH=3.0 # max Kč/kWh tepla pro spuštění TČ
PLANNING_CHEAP_PRICE_THRESHOLD=0.85
PLANNING_EXPENSIVE_PRICE_THRESHOLD=1.15