mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
160d199999
Previous commit improved the Caddyfile adapter so it doesn't unnecessarily add names to "skip" in "auto_https" when the server is already HTTP-only. This commit updates the tests to reflect that change, while also fixing the Caddyfile formatting in many of the tests. We also print the line number of the divergence between input and formatted version in Caddyfile adapt warnings - very useful for finding initial formatting problems.
92 lines
No EOL
1.1 KiB
Text
92 lines
No EOL
1.1 KiB
Text
# issue #3953
|
|
{
|
|
cert_issuer zerossl api_key
|
|
}
|
|
|
|
example.com {
|
|
tls {
|
|
on_demand
|
|
key_type rsa2048
|
|
}
|
|
}
|
|
|
|
http://example.net {
|
|
}
|
|
|
|
:1234 {
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":1234"
|
|
]
|
|
},
|
|
"srv1": {
|
|
"listen": [
|
|
":443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"example.com"
|
|
]
|
|
}
|
|
],
|
|
"terminal": true
|
|
}
|
|
]
|
|
},
|
|
"srv2": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"example.net"
|
|
]
|
|
}
|
|
],
|
|
"terminal": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"tls": {
|
|
"automation": {
|
|
"policies": [
|
|
{
|
|
"subjects": [
|
|
"example.com"
|
|
],
|
|
"issuers": [
|
|
{
|
|
"api_key": "api_key",
|
|
"module": "zerossl"
|
|
}
|
|
],
|
|
"key_type": "rsa2048",
|
|
"on_demand": true
|
|
},
|
|
{
|
|
"issuers": [
|
|
{
|
|
"api_key": "api_key",
|
|
"module": "zerossl"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |