httpcaddyfile: Fix generated config related to ACME global options

If global DNS provider is configured, it does not need to be repeated in the JSON.

If acme_* options are used, base automation policies should populate their issuers accordingly.

Global issuer settings like acme_* options don't need to specify subjects in the automation policy since they should apply as a global default.
This commit is contained in:
Matthew Holt
2025-08-04 16:20:49 -06:00
parent e4447c4ba7
commit 0badb071ef
3 changed files with 21 additions and 13 deletions

View File

@@ -34,17 +34,10 @@ example.com {
"automation": {
"policies": [
{
"subjects": [
"example.com"
],
"issuers": [
{
"challenges": {
"dns": {
"provider": {
"name": "mock"
}
}
"dns": {}
},
"module": "acme"
}

View File

@@ -31,9 +31,6 @@ example.com
"automation": {
"policies": [
{
"subjects": [
"example.com"
],
"issuers": [
{
"module": "acme",