chore: caddy config file(json)
nginx: proxy version api
This commit is contained in:
73
pkg/resource/nginx/caddy.json
Normal file
73
pkg/resource/nginx/caddy.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"apps": {
|
||||
"layer4": {
|
||||
"servers": {
|
||||
"proxy_8443_tcp_backends": {
|
||||
"listen": [":8443"],
|
||||
"routes": [
|
||||
{
|
||||
"handle": [
|
||||
{
|
||||
"handler": "proxy",
|
||||
"upstreams": [
|
||||
{"dial": ["10.118.2.11:32443"]},
|
||||
{"dial": ["10.118.2.12:32443"]}
|
||||
],
|
||||
"health_checks": {
|
||||
"active": {
|
||||
"interval": "5s",
|
||||
"timeout": "2s",
|
||||
"port": 32443
|
||||
},
|
||||
"passive": {
|
||||
"max_fails": 1,
|
||||
"fail_duration": "30s"
|
||||
}
|
||||
},
|
||||
"load_balancing": {
|
||||
"selection": {
|
||||
"policy": "round_robin"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"proxy_443_tcp_backends": {
|
||||
"listen": [":443"],
|
||||
"routes": [
|
||||
{
|
||||
"handle": [
|
||||
{
|
||||
"handler": "proxy",
|
||||
"upstreams": [
|
||||
{"dial": ["10.118.2.11:31443"]},
|
||||
{"dial": ["10.118.2.12:31443"]}
|
||||
],
|
||||
"health_checks": {
|
||||
"active": {
|
||||
"interval": "5s",
|
||||
"timeout": "2s",
|
||||
"port": 31443
|
||||
},
|
||||
"passive": {
|
||||
"max_fails": 1,
|
||||
"fail_duration": "30s"
|
||||
}
|
||||
},
|
||||
"load_balancing": {
|
||||
"selection": {
|
||||
"policy": "round_robin"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user