blob: 9453cecff276829b1f702da087ac5dbd0c812de4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# managed by Ansible
{% import 'macros.j2' as macros with context %}
authority {{ acme_authority_name }} {
api url "{{ acme_authority_url }}"
account key "{{ acme_authority_key }}"
}
{% call(h) macros.loop_valid_hosts(relayd_connected_hosts) -%}
{% for rule in h.acme_rules %}
domain {{ rule.domain }} {
alternative names { www.{{ rule.domain }} }
domain key "{{ acme_keys_dir }}/{{ rule.domain }}.key"
domain full chain certificate "{{ acme_certificates_dir }}/{{ rule.domain }}.crt"
sign with {{ acme_authority_name }}
}
{% endfor %}
{%- endcall %}
|