deploy/systemd/: - news-frontend.service (Astro SSR :4321) - news-bridge.service (Fastify :3200) - news-wordpress.service (Docker Compose wrapper) - frontend.env.example + bridge.env.example deploy/nginx/: - newsproject.bitreport.pt.conf (reverse proxy → :4321, /api/ → :3200) - Nginx config validated OK on CT 222 deploy/scripts/: - deploy.sh — full from-scratch deploy (clone, build, install, start) - webhook-deploy.sh — incremental deploy on git push (cron-friendly) Tested on CT 222 (10.10.50.140): - nginx -t → OK - systemd units installed (news-frontend/bridge/wordpress) - news-wordpress enabled; frontend/bridge pending Astro build Remaining manual steps: - DHCP reservation for 10.10.50.140 - NPM proxy host: newsproject.bitreport.pt → http://10.10.50.140 - Run deploy.sh after bridge.env and frontend.env are configured Co-Authored-By: Paperclip <[email protected]> Made-with: Cursor
13 lines
357 B
Bash
13 lines
357 B
Bash
# Astro SSR Frontend environment
|
|
# Deploy to /etc/news-platform/frontend.env on the LXC
|
|
# Values are deployment-specific; secrets in vault
|
|
|
|
HOST=0.0.0.0
|
|
PORT=4321
|
|
|
|
# Bridge API base URL (internal, from Astro server-side)
|
|
BRIDGE_API_URL=http://127.0.0.1:3200
|
|
|
|
# Site domain (used for canonical URLs, sitemaps, etc.)
|
|
SITE_URL=https://newsproject.bitreport.pt
|