Skip to content

Instantly share code, notes, and snippets.

@MarioIshac
Created February 12, 2021 00:10
Show Gist options
  • Save MarioIshac/268d7f62bae47580529648401a4d9b20 to your computer and use it in GitHub Desktop.
Save MarioIshac/268d7f62bae47580529648401a4d9b20 to your computer and use it in GitHub Desktop.
{
"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