2021-01-05 02:25:29 +08:00
|
|
|
# issue #3953
|
|
|
|
|
2020-10-29 10:36:00 +08:00
|
|
|
{
|
2021-01-05 02:25:29 +08:00
|
|
|
cert_issuer zerossl api_key
|
2020-10-29 10:36:00 +08:00
|
|
|
}
|
|
|
|
|
2021-01-05 02:25:29 +08:00
|
|
|
example.com {
|
2020-10-29 10:36:00 +08:00
|
|
|
tls {
|
|
|
|
on_demand
|
2021-01-07 03:02:58 +08:00
|
|
|
key_type rsa2048
|
2020-10-29 10:36:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-05 02:25:29 +08:00
|
|
|
http://example.net {
|
|
|
|
}
|
|
|
|
|
|
|
|
:1234 {
|
2020-10-29 10:36:00 +08:00
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
2021-01-05 02:25:29 +08:00
|
|
|
"listen": [
|
|
|
|
":1234"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"srv1": {
|
2020-10-29 10:36:00 +08:00
|
|
|
"listen": [
|
|
|
|
":443"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
2021-01-05 02:25:29 +08:00
|
|
|
"example.com"
|
2020-10-29 10:36:00 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
2021-01-05 02:25:29 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"srv2": {
|
|
|
|
"listen": [
|
|
|
|
":80"
|
|
|
|
],
|
|
|
|
"routes": [
|
2020-10-29 10:36:00 +08:00
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
2021-01-05 02:25:29 +08:00
|
|
|
"example.net"
|
2020-10-29 10:36:00 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
2021-01-05 02:25:29 +08:00
|
|
|
],
|
|
|
|
"automatic_https": {
|
|
|
|
"skip": [
|
|
|
|
"example.net"
|
|
|
|
]
|
|
|
|
}
|
2020-10-29 10:36:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tls": {
|
|
|
|
"automation": {
|
|
|
|
"policies": [
|
|
|
|
{
|
|
|
|
"subjects": [
|
2021-01-05 02:25:29 +08:00
|
|
|
"example.com"
|
2020-10-29 10:36:00 +08:00
|
|
|
],
|
2020-11-17 02:05:55 +08:00
|
|
|
"issuers": [
|
|
|
|
{
|
2021-01-05 02:25:29 +08:00
|
|
|
"api_key": "api_key",
|
|
|
|
"module": "zerossl"
|
2020-11-17 02:05:55 +08:00
|
|
|
}
|
|
|
|
],
|
2021-01-07 03:02:58 +08:00
|
|
|
"key_type": "rsa2048",
|
2020-10-29 10:36:00 +08:00
|
|
|
"on_demand": true
|
|
|
|
},
|
|
|
|
{
|
2020-11-17 02:05:55 +08:00
|
|
|
"issuers": [
|
|
|
|
{
|
2021-01-05 02:25:29 +08:00
|
|
|
"api_key": "api_key",
|
|
|
|
"module": "zerossl"
|
2020-11-17 02:05:55 +08:00
|
|
|
}
|
|
|
|
]
|
2020-10-29 10:36:00 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|