diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-19 18:16:09 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-19 18:16:09 -0700 |
| commit | 0c03f5b5e5e7b57dd6d617fa7513d7f5e807e877 (patch) | |
| tree | 1d530c7e912697513d9cff14f30b06272a939f21 /roles/obsd_ssl/templates/httpd.d/ssl.conf | |
| parent | Fix typo for directories (diff) | |
| download | site-configs-0c03f5b5e5e7b57dd6d617fa7513d7f5e807e877.zip | |
Rename cgit to git and acme to ssl for httpd
Diffstat (limited to 'roles/obsd_ssl/templates/httpd.d/ssl.conf')
| -rw-r--r-- | roles/obsd_ssl/templates/httpd.d/ssl.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/obsd_ssl/templates/httpd.d/ssl.conf b/roles/obsd_ssl/templates/httpd.d/ssl.conf new file mode 100644 index 0000000..357a294 --- /dev/null +++ b/roles/obsd_ssl/templates/httpd.d/ssl.conf @@ -0,0 +1,12 @@ +{% for domain in obsd_ssl_domains %} +server "{{ domain }}" { + listen on * port 80 + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { + block return 302 "https://$HTTP_HOST$REQUEST_URI" + } +} +{% endfor %} |