diff --git a/.env.example b/.env.example index ce4ef194..ed21890f 100644 --- a/.env.example +++ b/.env.example @@ -14,4 +14,4 @@ TELEGRAM_BOT_TOKEN= TELEGRAM_PM_CHAT_ID= # Public URL of the web platform -PEPPA_WEB_URL=http://localhost:3100 +PEPPA_WEB_URL=https://peppa.telecom.quest diff --git a/infra/traefik/peppa.yml b/infra/traefik/peppa.yml new file mode 100644 index 00000000..19f85a23 --- /dev/null +++ b/infra/traefik/peppa.yml @@ -0,0 +1,16 @@ +# Peppa — софтвейр-фабрика (веб-платформа). +# Источник: /Users/telecom/Dev/Peppa — Next.js на хосте, порт 3100 (launchd quest.telecom.peppa.web). +# Копия этого файла кладётся в /Users/timur/Dev/_Zorro/_INFRA/traefik/dynamic/ — Traefik подхватит по file-watch. +http: + routers: + peppa: + rule: "Host(`peppa.telecom.quest`)" + service: peppa + entryPoints: [web] + priority: 30 + middlewares: [compress] + services: + peppa: + loadBalancer: + servers: + - url: "http://host.docker.internal:3100" diff --git a/scripts/install-launchd.sh b/scripts/install-launchd.sh index 4c6d5290..caf542d1 100755 --- a/scripts/install-launchd.sh +++ b/scripts/install-launchd.sh @@ -1,32 +1,52 @@ #!/usr/bin/env bash -# Installs the Peppa watchdog as a launchd agent (starts at login, restarts on crash). -# caffeinate -i keeps the Mac from idle-sleeping while the watchdog runs. -# Remove: launchctl bootout gui/$(id -u)/quest.telecom.peppa.watchdog && rm the plist. +# Installs Peppa's launchd agents (start at login, restart on crash): +# quest.telecom.peppa.watchdog — session watchdog under caffeinate -i (no idle sleep) +# quest.telecom.peppa.web — Next.js platform on :3100 (needs `pnpm --filter @peppa/web build`) +# Usage: scripts/install-launchd.sh [watchdog] [web] (default: both) +# Remove: launchctl bootout gui/$(id -u)/