aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_ssl/templates/httpd.d/ssl.conf
blob: be3b53e91f7bd07597ff1ff6c6890dc67ec7711e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% for domain in obsd_ssl_domains %}
server "{{ domain.name }}" {
  listen on * port 80
  log access "{{ domain.name }}-access.log"
  log error "{{ domain.name }}-error.log"
  location "/.well-known/acme-challenge/*" {
    root "/acme"
    request strip 2
  }
  location * {
    block return 302 "https://$HTTP_HOST$REQUEST_URI"
  }
}
{% endfor %}