Skip to content

Commit 1d032de

Browse files
committed
feat(docs): added command to test full routing docker expose path
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent 049113e commit 1d032de

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,19 @@ These checks run **inside the HaRP container** (e.g., `docker exec -it appapi-ha
513513
# Expected: OK
514514
```
515515
516+
**3) Test full HAProxy routing (same path as AppAPI)**
517+
518+
This tests the complete request flow through HAProxy, SPOE agent, and to the Docker engine — the same path that AppAPI uses when performing "Test deploy":
519+
520+
```
521+
curl -v http://127.0.0.1:8780/exapps/app_api/_ping \
522+
-H "harp-shared-key: $HP_SHARED_KEY" \
523+
-H "docker-engine-port: 24000"
524+
# Expected: OK
525+
```
526+
527+
> **Note:** Do NOT test against port 8200 directly (e.g., `curl http://127.0.0.1:8200/_ping`). Port 8200 is the internal control API and does not handle Docker API requests.
528+
516529
### Verify that the Reverse Proxy configuration is correct
517530
518531
Stop the HaRP container temporarily and start a dummy server with `nc` (netcat) to confirm that your reverse proxy is forwarding requests correctly with all the headers:

0 commit comments

Comments
 (0)