mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-02 22:04:07 +08:00
821a08a6e3
* httpcaddyfile: Fix `protocols` global option parsing When checking for a block, the current nesting must be used, otherwise it returns the wrong thing. * Adjust adapt test to cover the broken behaviour that is now fixed * Fix some admin tests which suddenly run even with -short
71 lines
1003 B
Plaintext
71 lines
1003 B
Plaintext
{
|
|
servers {
|
|
listener_wrappers {
|
|
http_redirect
|
|
tls
|
|
}
|
|
timeouts {
|
|
read_body 30s
|
|
read_header 30s
|
|
write 30s
|
|
idle 30s
|
|
}
|
|
max_header_size 100MB
|
|
log_credentials
|
|
protocols h1 h2 h2c h3
|
|
strict_sni_host
|
|
}
|
|
}
|
|
|
|
foo.com {
|
|
}
|
|
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":443"
|
|
],
|
|
"listener_wrappers": [
|
|
{
|
|
"wrapper": "http_redirect"
|
|
},
|
|
{
|
|
"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,
|
|
"logs": {
|
|
"should_log_credentials": true
|
|
},
|
|
"protocols": [
|
|
"h1",
|
|
"h2",
|
|
"h2c",
|
|
"h3"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |