2020-11-23 22:46:50 +03:00
|
|
|
{
|
|
|
|
servers {
|
|
|
|
timeouts {
|
|
|
|
idle 90s
|
|
|
|
}
|
2022-10-12 18:27:08 +03:00
|
|
|
strict_sni_host insecure_off
|
2020-11-23 22:46:50 +03:00
|
|
|
}
|
|
|
|
servers :80 {
|
|
|
|
timeouts {
|
|
|
|
idle 60s
|
|
|
|
}
|
|
|
|
}
|
|
|
|
servers :443 {
|
|
|
|
timeouts {
|
|
|
|
idle 30s
|
|
|
|
}
|
2022-10-12 18:27:08 +03:00
|
|
|
strict_sni_host
|
2020-11-23 22:46:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-20 00:21:11 +03:00
|
|
|
foo.com {
|
2020-11-23 22:46:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
http://bar.com {
|
|
|
|
}
|
|
|
|
|
|
|
|
:8080 {
|
|
|
|
}
|
|
|
|
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":443"
|
|
|
|
],
|
|
|
|
"idle_timeout": 30000000000,
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"foo.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
2022-03-02 04:02:39 +03:00
|
|
|
],
|
|
|
|
"strict_sni_host": true
|
2020-11-23 22:46:50 +03:00
|
|
|
},
|
|
|
|
"srv1": {
|
|
|
|
"listen": [
|
|
|
|
":80"
|
|
|
|
],
|
|
|
|
"idle_timeout": 60000000000,
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"bar.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
2021-01-20 00:21:11 +03:00
|
|
|
]
|
2020-11-23 22:46:50 +03:00
|
|
|
},
|
|
|
|
"srv2": {
|
|
|
|
"listen": [
|
|
|
|
":8080"
|
|
|
|
],
|
2022-03-02 04:02:39 +03:00
|
|
|
"idle_timeout": 90000000000,
|
|
|
|
"strict_sni_host": false
|
2020-11-23 22:46:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|