Browse Source
* reverseproxy: Add Caddyfile scheme shorthand for h2c * reverseproxy: Use parentheses for condition Co-authored-by: Matt Holt <mholt@users.noreply.github.com> Co-authored-by: Matt Holt <mholt@users.noreply.github.com>master
Francis Lavoie
4 years ago
committed by
GitHub
2 changed files with 48 additions and 3 deletions
@ -0,0 +1,38 @@ |
|||
:8884 |
|||
|
|||
reverse_proxy h2c://localhost:8080 |
|||
---------- |
|||
{ |
|||
"apps": { |
|||
"http": { |
|||
"servers": { |
|||
"srv0": { |
|||
"listen": [ |
|||
":8884" |
|||
], |
|||
"routes": [ |
|||
{ |
|||
"handle": [ |
|||
{ |
|||
"handler": "reverse_proxy", |
|||
"transport": { |
|||
"protocol": "http", |
|||
"versions": [ |
|||
"h2c", |
|||
"2" |
|||
] |
|||
}, |
|||
"upstreams": [ |
|||
{ |
|||
"dial": "localhost:8080" |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue