aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_ssl/templates
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-19 22:32:54 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-19 22:32:54 -0700
commit6cf0129d002d0bbc88756f4d662e0f5af043dc52 (patch)
tree45c56805d7f49e5f1977050f7fa6da81b8ec9138 /roles/obsd_ssl/templates
parentRename cgit to git and acme to ssl for httpd (diff)
downloadsite-configs-6cf0129d002d0bbc88756f4d662e0f5af043dc52.zip
Add static site hosting for eugenetriguba.com
Diffstat (limited to 'roles/obsd_ssl/templates')
-rw-r--r--roles/obsd_ssl/templates/acme-client.conf.j29
-rw-r--r--roles/obsd_ssl/templates/httpd.d/ssl.conf2
2 files changed, 7 insertions, 4 deletions
diff --git a/roles/obsd_ssl/templates/acme-client.conf.j2 b/roles/obsd_ssl/templates/acme-client.conf.j2
index cb53f34..051e32c 100644
--- a/roles/obsd_ssl/templates/acme-client.conf.j2
+++ b/roles/obsd_ssl/templates/acme-client.conf.j2
@@ -9,9 +9,12 @@ authority letsencrypt-staging {
}
{% for domain in obsd_ssl_domains %}
-domain "{{ domain }}" {
- domain key "/etc/ssl/private/{{ domain }}.key"
- domain full chain certificate "/etc/ssl/{{ domain }}.fullchain.pem"
+domain "{{ domain.name }}" {
+ {% if domain.alternative_names is defined %}
+ alternative names { {{ domain.alternative_names | default([]) | join(' ') }} }
+ {% endif %}
+ domain key "/etc/ssl/private/{{ domain.name }}.key"
+ domain full chain certificate "/etc/ssl/{{ domain.name }}.fullchain.pem"
sign with letsencrypt
}
{% endfor %}
diff --git a/roles/obsd_ssl/templates/httpd.d/ssl.conf b/roles/obsd_ssl/templates/httpd.d/ssl.conf
index 357a294..0576580 100644
--- a/roles/obsd_ssl/templates/httpd.d/ssl.conf
+++ b/roles/obsd_ssl/templates/httpd.d/ssl.conf
@@ -1,5 +1,5 @@
{% for domain in obsd_ssl_domains %}
-server "{{ domain }}" {
+server "{{ domain.name }}" {
listen on * port 80
location "/.well-known/acme-challenge/*" {
root "/acme"