2020-06-05 21:19:36 +03:00
|
|
|
localhost
|
|
|
|
|
|
|
|
respond "hello from localhost"
|
|
|
|
tls {
|
|
|
|
client_auth {
|
2021-01-20 00:21:11 +03:00
|
|
|
mode request
|
2024-01-25 11:44:41 +03:00
|
|
|
trust_pool file {
|
|
|
|
pem_file ../caddy.ca.cer
|
|
|
|
}
|
2020-06-05 21:19:36 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":443"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "subroute",
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"body": "hello from localhost",
|
|
|
|
"handler": "static_response"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tls_connection_policies": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"sni": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"client_authentication": {
|
2024-01-25 11:44:41 +03:00
|
|
|
"ca": {
|
|
|
|
"pem_files": [
|
|
|
|
"../caddy.ca.cer"
|
|
|
|
],
|
|
|
|
"provider": "file"
|
|
|
|
},
|
2020-06-05 21:19:36 +03:00
|
|
|
"mode": "request"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|