mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 22:23:48 +03:00
79 lines
No EOL
1.2 KiB
Text
79 lines
No EOL
1.2 KiB
Text
localhost
|
|
|
|
respond "hello from localhost"
|
|
tls {
|
|
propagation_delay 5m10s
|
|
propagation_timeout 10m20s
|
|
}
|
|
----------
|
|
{
|
|
"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": {
|
|
"automation": {
|
|
"policies": [
|
|
{
|
|
"subjects": [
|
|
"localhost"
|
|
],
|
|
"issuers": [
|
|
{
|
|
"challenges": {
|
|
"dns": {
|
|
"propagation_delay": 310000000000,
|
|
"propagation_timeout": 620000000000
|
|
}
|
|
},
|
|
"module": "acme"
|
|
},
|
|
{
|
|
"challenges": {
|
|
"dns": {
|
|
"propagation_delay": 310000000000,
|
|
"propagation_timeout": 620000000000
|
|
}
|
|
},
|
|
"module": "zerossl"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |