mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-06 00:58:26 +03:00
![Francis Lavoie](/assets/img/avatar_default.png)
Lots of the files were using CRLF instead of LF. Mostly my fault cause sometimes I make the files on Windows and VSCode for some reason kept making them with the wrong line endings. Sigh. Since .txt files typically default to spaces for indentation, I'm also adding an .editorconfig to ensure they use tabs instead
56 lines
883 B
Text
56 lines
883 B
Text
:8884
|
|
|
|
reverse_proxy 127.0.0.1:65535 {
|
|
trusted_proxies 127.0.0.1
|
|
}
|
|
|
|
reverse_proxy 127.0.0.1:65535 {
|
|
trusted_proxies private_ranges
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":8884"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"trusted_proxies": [
|
|
"127.0.0.1"
|
|
],
|
|
"upstreams": [
|
|
{
|
|
"dial": "127.0.0.1:65535"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"trusted_proxies": [
|
|
"192.168.0.0/16",
|
|
"172.16.0.0/12",
|
|
"10.0.0.0/8",
|
|
"127.0.0.1/8",
|
|
"fd00::/8",
|
|
"::1"
|
|
],
|
|
"upstreams": [
|
|
{
|
|
"dial": "127.0.0.1:65535"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|