Switch domain to warehack.ing, add prod/dev .env.example

Dev: heltec-tracker.l.warehack.ing
Prod: heltec-tracker.warehack.ing

SITE_URL is now env-driven so the same image builds correct
canonical URLs for both environments.
This commit is contained in:
Ryan Malloy 2026-02-21 18:41:44 -07:00
parent e3642cbc4e
commit f6fe421a73
3 changed files with 17 additions and 2 deletions

14
site/.env.example Normal file
View File

@ -0,0 +1,14 @@
# Docker Compose project name
COMPOSE_PROJECT=heltec-tracker-docs
# --- Development (local) ---
# MODE=development
# DOMAIN=heltec-tracker.l.warehack.ing
# VITE_HMR_HOST=heltec-tracker.l.warehack.ing
# PORT=4321
# --- Production ---
MODE=production
DOMAIN=heltec-tracker.warehack.ing
SITE_URL=https://heltec-tracker.warehack.ing
PORT=80

View File

@ -4,7 +4,7 @@ import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://heltec-tracker-module.l.zmesh.systems',
site: process.env.SITE_URL || 'https://heltec-tracker.warehack.ing',
// Disable telemetry
telemetry: false,

View File

@ -8,11 +8,12 @@ services:
environment:
- ASTRO_TELEMETRY_DISABLED=1
- VITE_HMR_HOST=${VITE_HMR_HOST:-}
- SITE_URL=${SITE_URL:-}
networks:
- caddy
labels:
# Caddy reverse proxy configuration
caddy: ${DOMAIN:-heltec-tracker-module.l.zmesh.systems}
caddy: ${DOMAIN:-heltec-tracker.l.warehack.ing}
caddy.reverse_proxy: "{{upstreams ${PORT:-4321}}}"
# HMR WebSocket support for dev mode
caddy.reverse_proxy.flush_interval: "-1"