aboutsummaryrefslogtreecommitdiffstats
path: root/roles/acme/templates/acme-client.conf.j2
blob: 00c2f60dd8fc2e513148bac01fee536930656817 (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 %}
remember that computers suck.