Created
February 12, 2021 00:10
-
-
Save MarioIshac/268d7f62bae47580529648401a4d9b20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apps": { | |
"http": { | |
"servers": { | |
"server_0": { | |
"listen": [ | |
":80" | |
], | |
"logs": {}, | |
"routes": [ | |
{ | |
"match": [ | |
{ | |
"host": [ | |
"0.0.0.0" | |
] | |
} | |
] | |
}, | |
{ | |
"handle": [ | |
{ | |
"handler": "reverse_proxy", | |
"buffer_requests": true, | |
"upstreams": [ | |
{ | |
"dial": "localhost:8000" | |
} | |
], | |
"headers": { | |
"response": { | |
"add": { | |
"Response-Time": ["{http.request.duration}"], | |
"Proxy-Latency": ["{http.reverse_proxy.upstream.latency}"] | |
} | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment