# ------------------------------------------------------------------
# Ghost stack: Journal (journal.mildgrim.com)
# ActivityPub enabled — public, federated feed; no members/newsletter.
#
# .env is the single source of truth for Compose interpolation and is
# committed so Portainer (Git + relative path volumes) auto-loads it.
# ------------------------------------------------------------------

# Enable optional containers. ActivityPub is self-hosted here.
COMPOSE_PROFILES=activitypub

# Public domain Ghost will run on.
DOMAIN=journal.mildgrim.com

# Host port published for this stack's Caddy (HTTP). The VPS Caddy edge
# terminates TLS and reverse-proxies journal.mildgrim.com here over WireGuard.
HTTP_PORT=10020

# Self-host the ActivityPub service instead of the Ghost(Pro) hosted one.
ACTIVITYPUB_TARGET=activitypub:8080

# Database settings.
# WARNING: do not change these after the database has been initialised.
DATABASE_ROOT_PASSWORD=8f592d6d8ca91f3d062632fe8f01d1dfe55e719050eeba2fca8e0c5b6898a6a8
DATABASE_USER=ghost
DATABASE_PASSWORD=aa51716c519607d8f75f3348c5bcfc3ee872fc368c87ef584ecaff3f2705bf30

# ------------------------------------------------------------------
# SMTP (Stalwart on the VPS) — transactional mail only.
# ------------------------------------------------------------------
mail__transport=SMTP
mail__options__host=smtp.mildgrim.com
mail__options__port=465
mail__options__secure=true
mail__options__auth__user=ghost-admin@mildgrim.com
mail__options__auth__pass=e34ac8a3cb11106f0f5695a40969933be8718a14ddb0e1ea249307261b07cdfe
mail__from="'Mildgrim Journal' <ghost-journal@mildgrim.com>"

# ------------------------------------------------------------------
# Data locations. ABSOLUTE host paths so they survive Portainer repo
# re-clones (a relative ./data would be wiped on every redeploy).
# ------------------------------------------------------------------
UPLOAD_LOCATION=/home/mildgrim/ghost-journal/data/ghost
MYSQL_DATA_LOCATION=/home/mildgrim/ghost-journal/data/mysql
