2020-11-24 03:46:50 +08:00
|
|
|
{
|
|
|
|
servers {
|
|
|
|
listener_wrappers {
|
2022-02-20 06:36:36 +08:00
|
|
|
http_redirect
|
2020-11-24 03:46:50 +08:00
|
|
|
tls
|
|
|
|
}
|
|
|
|
timeouts {
|
|
|
|
read_body 30s
|
|
|
|
read_header 30s
|
|
|
|
write 30s
|
|
|
|
idle 30s
|
|
|
|
}
|
|
|
|
max_header_size 100MB
|
2021-12-03 04:26:24 +08:00
|
|
|
log_credentials
|
2022-08-16 02:01:58 +08:00
|
|
|
strict_sni_host
|
|
|
|
protocols h1 h2 h2c h3
|
2020-11-24 03:46:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-20 05:21:11 +08:00
|
|
|
foo.com {
|
2020-11-24 03:46:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":443"
|
|
|
|
],
|
|
|
|
"listener_wrappers": [
|
2022-02-20 06:36:36 +08:00
|
|
|
{
|
|
|
|
"wrapper": "http_redirect"
|
|
|
|
},
|
2020-11-24 03:46:50 +08:00
|
|
|
{
|
|
|
|
"wrapper": "tls"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"read_timeout": 30000000000,
|
|
|
|
"read_header_timeout": 30000000000,
|
|
|
|
"write_timeout": 30000000000,
|
|
|
|
"idle_timeout": 30000000000,
|
|
|
|
"max_header_bytes": 100000000,
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"foo.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"strict_sni_host": true,
|
2021-12-03 04:26:24 +08:00
|
|
|
"logs": {
|
|
|
|
"should_log_credentials": true
|
|
|
|
},
|
2022-08-16 02:01:58 +08:00
|
|
|
"protocols": [
|
|
|
|
"h1",
|
|
|
|
"h2",
|
|
|
|
"h2c",
|
|
|
|
"h3"
|
|
|
|
]
|
2020-11-24 03:46:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|