# ---------------------------------------------------------------------------
# news (PocketBase + HTMX) — committed like the other stacks in this repo.
# Rotate PB_ADMIN_PASSWORD and the publisher password if this repo is shared.
# ---------------------------------------------------------------------------

# PocketBase release to build. No official image exists, so the Dockerfile
# unpacks this exact release zip. Check the current release at
# https://github.com/pocketbase/pocketbase/releases before bumping.
PB_VERSION=0.40.4

# NB: the Tailwind CLI version is pinned in news/tailwind/package.json.

# 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=
