# ---------------------------------------------------------------------------
# news (PocketBase + HTMX) — runtime config, committed like the other stacks.
# Application code lives in git.mildgrim.com/mildgrim/news-app, which builds
# and pushes the image. Rotate PB_ADMIN_PASSWORD and the publisher password if
# this repo is shared.
# ---------------------------------------------------------------------------

# Image built and pushed by the news-app workflow and pulled by Portainer.
# Pin the :<short-sha> tag instead of :latest to roll back to a known build.
NEWS_IMAGE=git.mildgrim.com/mildgrim/news:latest

# Host port published for the VPS Caddy edge. Keep firewalled to LAN/WireGuard;
# the VPS Caddy edge is the only intended route from outside.
NEWS_HOST_PORT=8090

# Public site
DOMAIN=news.mildgrim.com
PUBLIC_URL=https://news.mildgrim.com
NEWS_APP_NAME="Mildgrim News"

# Feed behaviour
NEWS_PAGE_SIZE=20
NEWS_CATEGORIES=World,Tech,Swedish,EU

# Bootstrap superuser for the PocketBase dashboard (news.mildgrim.com/_/).
# entrypoint.sh upserts this on every start, so changing it here changes the
# dashboard login. If either value is empty the upsert is skipped and the
# container still serves.
PB_ADMIN_EMAIL=admin@mildgrim.com
PB_ADMIN_PASSWORD=S7EgFZBNkyM43aeDq0Mv69wnJCBfZM6KL1L

# Publisher account used by n8n to write stories. You create it once by hand in
# the dashboard (or via the API). Only the email is documented here on purpose;
# the password is set interactively and never stored in this file.
NEWS_PUBLISHER_EMAIL=n8n@mildgrim.com

# Umami analytics. Leave UMAMI_WEBSITE_ID empty to omit the script entirely.
UMAMI_SCRIPT_URL=https://stats.mildgrim.com/script.js
UMAMI_WEBSITE_ID=
