aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/templates/httpd.conf.j2
blob: aef96c53843d79400c286fca122c8c85bf9226fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

# httpd.conf ~~ /etc/httpd.conf
# managed by Ansible

types {
	text/plain      txt pgp pub
	text/html       html htm
	text/css        css
	image/svg+xml   svg
	image/jpeg      jpeg jpg
	image/gif       gif
	image/png       png
}

{% if ansible_host == global.dcontroller %}
server "default" {
        listen on localhost port 8888

	location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }

        location * {
            block return 302 "https://\$HTTP_HOST\$REQUEST_URI"
        }
}
{% endif %}

{% for file in configurations.files %}
include "{{ file.path }}"
{% endfor %}
remember that computers suck.