DEPLOY.md: remove the 'agent on 92 can't reach 186:3452' section

The user's micro agent dials ws://172.18.139.186:3452/ws/agent
directly, bypassing nginx. The 'add a /ws/agent nginx proxy
block' workaround was for a different topology where the
agent goes through nginx on 80, which doesn't apply here.

That section was confusing — it suggested an nginx change
the user doesn't need. Delete it.
This commit is contained in:
Achmad
2026-06-24 05:48:10 +00:00
parent b8736f4ac3
commit f3da975eb7
-25
View File
@@ -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. (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" ### Login returns "git ls-remote rejected"
Either: Either: