Make zerossl usage depend on having an api key

This commit is contained in:
Marty Oehme 2024-06-24 18:56:37 +02:00
parent 9ec5b6dec6
commit 3171aa5ead
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 7 additions and 4 deletions

View file

@ -9,3 +9,4 @@ caddy_use_https: yes
caddy_tls_use_staging: no
# caddy_email: your@email.here
# caddy_zerossl_api_key: your-zerossl-key-here-its-free

View file

@ -51,17 +51,19 @@
{% if caddy_tls_use_staging is sameas true %}
"ca": "https://acme-staging-v02.api.letsencrypt.org/directory",
{% endif %}
{%- if caddy_email is not undefined and not none %}
{%- if caddy_email is not undefined and not none %}
"email": "{{ caddy_email }}",
{% endif %}
"module": "acme"
{%- if caddy_zerossl_api_key is not undefined and not none %}
},
{
{%- if caddy_email is not undefined and not none %}
"email": "{{ caddy_email }}",
{% endif %}
"api_key": "{{ caddy_zerossl_api_key }}",
"module": "zerossl"
}
{% else %}
}
{% endif %}
]
}
]