diff --git a/DEPLOY.md b/DEPLOY.md index 7306988..455cf9d 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -198,31 +198,6 @@ ExecStart=/home/administrator/SDP/bin/agent-micro -node micro -cp ws://172.18.13 (Remove the `Environment=` / `EnvironmentFile=` / `${SDP_CP_URL}` lines.) Do the same for `systemd/sdp-agent-gateway.service` (URL is `ws://127.0.0.1:3452/ws/agent`). Re-do steps 7 and 8. -### Micro agent on 92 can't reach the control plane on 186:3452 - -Symptom: `sdp-agent-micro.service` journal shows `dial: ... connection refused` or `i/o timeout` to `172.18.139.186:3452`. - -Fix: add a `/ws/agent` proxy block to 186's nginx (alongside the four from `nginx/sandbox.conf`): - -```nginx -location /ws/agent { - proxy_pass http://127.0.0.1:3452; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_read_timeout 3600s; -} -``` - -On your laptop, edit `systemd/sdp-agent-micro.service` to dial through nginx on 80: - -```ini -Environment=SDP_CP_URL=ws://172.18.139.186/ws/agent -``` - -(Port 80, no `:3452`.) Then on 186, reload nginx and re-do steps 7 and 8a. - ### Login returns "git ls-remote rejected" Either: