Update proxying.md

Add endpoints to the proxy examples, as used in the sample app-config.yaml

Signed-off-by: Christoph Jerolimov <jerolimov+github@redhat.com>
This commit is contained in:
Christoph Jerolimov
2023-09-29 16:52:54 +02:00
committed by GitHub
parent 69872b3f7a
commit f302e15080
+8 -7
View File
@@ -36,13 +36,14 @@ Example:
```yaml
# in app-config.yaml
proxy:
/simple-example: http://simple.example.com:8080
'/larger-example/v1':
target: http://larger.example.com:8080/svc.v1
headers:
Authorization: ${EXAMPLE_AUTH_HEADER}
# ...or interpolating a value into part of a string,
# Authorization: Bearer ${EXAMPLE_AUTH_TOKEN}
endpoints:
/simple-example: http://simple.example.com:8080
'/larger-example/v1':
target: http://larger.example.com:8080/svc.v1
headers:
Authorization: ${EXAMPLE_AUTH_HEADER}
# ...or interpolating a value into part of a string,
# Authorization: Bearer ${EXAMPLE_AUTH_TOKEN}
```
Each key under the proxy configuration entry is a route to match, below the