2020-11-25 02:36:58 +03:00
|
|
|
http://localhost:2020 {
|
|
|
|
log
|
2024-03-06 03:03:59 +03:00
|
|
|
log_skip /first-hidden*
|
|
|
|
log_skip /second-hidden*
|
2020-11-25 04:04:37 +03:00
|
|
|
respond 200
|
2020-11-25 02:36:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
:2020 {
|
|
|
|
respond 418
|
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":2020"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "subroute",
|
|
|
|
"routes": [
|
2022-09-15 19:05:36 +03:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "vars",
|
2024-03-06 03:03:59 +03:00
|
|
|
"log_skip": true
|
2022-09-15 19:05:36 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": [
|
|
|
|
"/second-hidden*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "vars",
|
2024-03-06 03:03:59 +03:00
|
|
|
"log_skip": true
|
2022-09-15 19:05:36 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": [
|
|
|
|
"/first-hidden*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-11-25 02:36:58 +03:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
2020-11-25 04:04:37 +03:00
|
|
|
"handler": "static_response",
|
|
|
|
"status_code": 200
|
2020-11-25 02:36:58 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "subroute",
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "static_response",
|
|
|
|
"status_code": 418
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"automatic_https": {
|
|
|
|
"skip": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"logs": {
|
|
|
|
"logger_names": {
|
2024-04-17 01:26:18 +03:00
|
|
|
"localhost": [
|
|
|
|
""
|
|
|
|
]
|
2020-11-25 02:36:58 +03:00
|
|
|
},
|
|
|
|
"skip_unmapped_hosts": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|