Files
news-platform/deploy/systemd/bridge.env.example
Artur MoreiraandPaperclip a8b71762d9 fix(news-platform): SSR domain routing, resilient homepage, Gitea deploy hook
- Forward X-Site-Host from Astro to the bridge so loopback calls use the public domain JSON
- Normalize newsproject.bitreport.pt.json (categories slug/label, wp on 127.0.0.1:8080)
- Degrade homepage/trending when WordPress is down instead of 500
- Extend webhook-deploy.sh for config/ and wordpress/ changes; add deploy-hook-server + systemd unit
- Document automatic Gitea webhook flow in docs/deployment.md; align DOMAINS_CONFIG_PATH env

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 19:47:19 +00:00

21 lines
609 B
Bash

# Fastify Bridge API environment
# Deploy to /etc/news-platform/bridge.env on the LXC
# Values are deployment-specific; secrets in vault
NODE_ENV=production
PORT=3200
HOST=127.0.0.1
# WordPress REST API base URL (Docker, internal)
WP_API_URL=http://127.0.0.1:8080/wp-json/wp/v2
# Redis cache (installed on host)
REDIS_URL=redis://127.0.0.1:6379
# Cache TTL in seconds (default 5 min for articles, 1 min for homepage)
CACHE_TTL_ARTICLES=300
CACHE_TTL_HOMEPAGE=60
# Absolute path to domain JSON files (bridge reads this env key or DOMAINS_CONFIG_PATH)
DOMAINS_CONFIG_PATH=/opt/news-platform/config/domains