C: C3 x-slinuxm-peer response header on every proxied outcome
This commit is contained in:
1 parent
bab6959a94
commit
58012018d9
4 files changed
+34
-8
No files matched your search
@@ -47,6 +47,7 @@ Present only when `[peers] enabled = true`. The same inbound token as the rest o
|
||||
|
||||
A request that already has `x-slinuxm-hop` is `400` `peer <name>: chained requests are not allowed`. Other methods are `405`. `journal/follow` and docker logs with `follow=1` are `text/event-stream`, cut off at `limits.max_follow_secs` or shutdown. Bodies larger than `peers.max_response_bytes` are `503` `peer <name>: oversize`.
|
||||
|
||||
Every proxied response, including the consolidator's own errors for that peer (`400`, `404`, `500`, `503`), carries `x-slinuxm-peer: <name>`.
|
||||
|
||||
```sh
|
||||
curl -H "Authorization: Bearer $TOKEN" 'http://127.0.0.1:1984/api/v1/peers/beta/systemd/units?state=failed'
|
||||
|
||||
Reference in new issue
Block a user