Use DNS challenge for non-production

This commit is contained in:
Sam A. 2023-12-27 19:26:29 +01:00
parent 2e3e404727
commit f9b7abd0b0
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -66,7 +66,13 @@ xmr.local.{{ proxy_vars[env].app01.apps_base_domain }} {
} }
cloud.{{ proxy_vars[env].app01.apps_base_domain }} { cloud.{{ proxy_vars[env].app01.apps_base_domain }} {
{% if env == 'production' %}
tls {{ tls_email }} tls {{ tls_email }}
{% else %}
tls {{ tls_email }} {
dns njalla {{ njalla_api_token }}
}
{% endif %}
header { header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"