CERTBOT_EMAIL="{{ certbot.email }}"
CERTBOT_AUTHENTICATOR={{ certbot.auth_method }}
SERVER_WEBROOT_PATH={{ ansible_user_home.stdout + "/srv/acme." + inventory_hostname }}
{% if compose.mode == "dev" %}
# @TODO find a better way to have processed the below in Ansible
CERTBOT_CHALLENGE_DOMAINS={{ certbot.domains | map("regex_replace", "\\.([^\\.]*)$", ".test") | list | join(",") }}
STAGING=1
DEBUG=1
VERBOSE=1
RUN_ONCE=1
{% elif compose.mode == "prod" %}
CERTBOT_CHALLENGE_DOMAINS={{ certbot.domains | join(",") }}
CRON={{ certbot.cron }}
{% endif %}
