mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 22:23:48 +03:00
71 lines
No EOL
1 KiB
Text
71 lines
No EOL
1 KiB
Text
localhost
|
|
|
|
respond "hello from localhost"
|
|
tls {
|
|
client_auth {
|
|
mode request
|
|
trust_pool file {
|
|
pem_file ../caddy.ca.cer
|
|
}
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"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": {
|
|
"ca": {
|
|
"pem_files": [
|
|
"../caddy.ca.cer"
|
|
],
|
|
"provider": "file"
|
|
},
|
|
"mode": "request"
|
|
}
|
|
},
|
|
{}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |