OPS - DEPLOY: wire Ops Agents Gateway into Synology runbooks
This commit is contained in:
@@ -210,10 +210,10 @@ https://ops-agents.nodedc.ru
|
||||
Synology reverse proxy should route:
|
||||
|
||||
```text
|
||||
HTTPS ops-agents.nodedc.ru:443 -> HTTP 127.0.0.1:18190
|
||||
HTTPS ops-agents.nodedc.ru:443 -> HTTP 172.22.0.222:18190
|
||||
```
|
||||
|
||||
Do not use host port `18090` for this module: `18090` is the Tasker proxy port. Gateway container port remains `4100`; host port is controlled by `HOST_PORT=18190`.
|
||||
Do not use host port `18090` for this module: `18090` is the Tasker proxy port. Gateway container port remains `4100`; host bind/port are controlled by `HOST_BIND=172.22.0.222` and `HOST_PORT=18190`.
|
||||
|
||||
Main services:
|
||||
|
||||
@@ -246,10 +246,23 @@ From macOS with `/Volumes/docker` mounted:
|
||||
cd /Users/dcconstructions/Downloads/mnt/NODEDC/platform
|
||||
NAS_ROOT=/Volumes/docker/nodedc-platform \
|
||||
LAUNCHER_REPO=/Users/dcconstructions/Downloads/mnt/data/nodedc_launcher \
|
||||
TASKER_REPO=/Users/dcconstructions/Downloads/mnt/data/dc_taskmanager/NODEDC_TASKMANAGER \
|
||||
TASKER_CHANGED_BASE=533f8c6 \
|
||||
GATEWAY_REPO=/Users/dcconstructions/Downloads/mnt/data/NODEDC_TASKMANAGER_CODEXAPI \
|
||||
./infra/synology/deploy-current.sh
|
||||
```
|
||||
|
||||
The script syncs platform deploy files and prints the Docker commands that must be run on Synology, because Docker there requires interactive `sudo`.
|
||||
The script syncs platform deploy files plus optional Launcher, Tasker, and Ops Agents Gateway source copies. It prints the Docker commands that must be run on Synology, because Docker there requires interactive `sudo`.
|
||||
|
||||
Tasker full source sync over SMB is intentionally not the default. Use `TASKER_CHANGED_BASE=<commit>` for normal deploys, or `TASKER_SYNC_SOURCE=1` only when a full source refresh is required.
|
||||
|
||||
The script does not overwrite live secret files:
|
||||
|
||||
```text
|
||||
/volume1/docker/nodedc-platform/platform/.env.synology
|
||||
/volume1/docker/nodedc-platform/tasker/plane-app/.env.synology
|
||||
/volume1/docker/nodedc-platform/ops-agents/.env
|
||||
```
|
||||
|
||||
Launcher image build is done from the Launcher repo when frontend/backend code changes:
|
||||
|
||||
@@ -327,7 +340,7 @@ Replace `web` with `admin`, `api`, or another service only when that service ima
|
||||
Tasker backend must receive the Gateway internal URL/token before Codex/Ops Agent UI can create agents in production:
|
||||
|
||||
```env
|
||||
PLANE_NODEDC_AGENT_GATEWAY_URL=http://127.0.0.1:18190
|
||||
PLANE_NODEDC_AGENT_GATEWAY_URL=http://172.22.0.222:18190
|
||||
PLANE_NODEDC_AGENT_GATEWAY_TOKEN=<same value as NODEDC_AGENT_GATEWAY_INTERNAL_TOKEN>
|
||||
```
|
||||
|
||||
@@ -351,8 +364,8 @@ Required Synology `.env` values are documented in:
|
||||
Minimum checks:
|
||||
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:18190/healthz
|
||||
curl -fsS http://127.0.0.1:18190/readyz
|
||||
curl -fsS http://172.22.0.222:18190/healthz
|
||||
curl -fsS http://172.22.0.222:18190/readyz
|
||||
curl -fsS -i https://ops-agents.nodedc.ru/mcp | head
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user