mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-28 08:01:49 +01:00
47 lines
795 B
Text
47 lines
795 B
Text
|
:8884
|
||
|
|
||
|
reverse_proxy one|http://localhost two|http://localhost {
|
||
|
to three|srv+http://localhost four|srv+http://localhost
|
||
|
}
|
||
|
----------
|
||
|
{
|
||
|
"apps": {
|
||
|
"http": {
|
||
|
"servers": {
|
||
|
"srv0": {
|
||
|
"listen": [
|
||
|
":8884"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"handle": [
|
||
|
{
|
||
|
"handler": "reverse_proxy",
|
||
|
"upstreams": [
|
||
|
{
|
||
|
"dial": "localhost:80",
|
||
|
"id": "one"
|
||
|
},
|
||
|
{
|
||
|
"dial": "localhost:80",
|
||
|
"id": "two"
|
||
|
},
|
||
|
{
|
||
|
"id": "three",
|
||
|
"lookup_srv": "localhost"
|
||
|
},
|
||
|
{
|
||
|
"id": "four",
|
||
|
"lookup_srv": "localhost"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|