Make zerossl usage depend on having an api key
This commit is contained in:
parent
9ec5b6dec6
commit
3171aa5ead
2 changed files with 7 additions and 4 deletions
|
|
@ -9,3 +9,4 @@ caddy_use_https: yes
|
||||||
caddy_tls_use_staging: no
|
caddy_tls_use_staging: no
|
||||||
# caddy_email: your@email.here
|
# caddy_email: your@email.here
|
||||||
|
|
||||||
|
# caddy_zerossl_api_key: your-zerossl-key-here-its-free
|
||||||
|
|
|
||||||
|
|
@ -55,13 +55,15 @@
|
||||||
"email": "{{ caddy_email }}",
|
"email": "{{ caddy_email }}",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"module": "acme"
|
"module": "acme"
|
||||||
|
{%- if caddy_zerossl_api_key is not undefined and not none %}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{%- if caddy_email is not undefined and not none %}
|
"api_key": "{{ caddy_zerossl_api_key }}",
|
||||||
"email": "{{ caddy_email }}",
|
|
||||||
{% endif %}
|
|
||||||
"module": "zerossl"
|
"module": "zerossl"
|
||||||
}
|
}
|
||||||
|
{% else %}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue