website: fix proxies to work via copy/paste

pull/4275/head
Mitchell Hashimoto 2018-06-12 20:26:52 +02:00 committed by Jack Pearkes
parent 6a438c25d0
commit f92a89b310
1 changed files with 37 additions and 25 deletions

View File

@ -63,8 +63,11 @@ default managed proxy and starts a listener for that service:
```json
{
"service": "redis",
"service": {
"name": "redis",
"port": 6379,
"connect": { "proxy": {} }
}
}
```
@ -85,7 +88,9 @@ proxy configuration:
```json
{
"service": "web",
"service": {
"name": "web",
"port": 8080,
"connect": {
"proxy": {
"config": {
@ -96,6 +101,7 @@ proxy configuration:
}
}
}
}
}
```
@ -125,18 +131,21 @@ service.
```json
{
"service": "web",
"service": {
"name": "web",
"port": 8080,
"connect": {
"proxy": {
"config": {
"upstreams": [{
"destination_name": "nearest-redis",
"destination_name": "redis",
"destination_type": "prepared_query",
"local_bind_port": 1234
}]
}
}
}
}
}
```
@ -160,15 +169,18 @@ can be used.
configured to run as a managed proxy. To configure custom proxies, specify
an alternate command to execute for the proxy:
```
```json
{
"service": "web",
"service": {
"name": "web",
"port": 8080,
"connect": {
"proxy": {
"exec_mode": "daemon",
"command": ["/usr/bin/my-proxy", "-flag-example"]
}
}
}
}
```