aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-17 22:42:17 +0100
committerbinary <me@rgoncalves.se>2021-03-17 22:42:17 +0100
commit59185bfdb10c6daab56f75ead3a32151413651c8 (patch)
tree865b07aed28dc627819eb166147c9cd5be8a2928 /roles
parente4eb3bce26a9fe5cd4bc0f5e94398a31dc8d656a (diff)
downloadinfrastructure-59185bfdb10c6daab56f75ead3a32151413651c8.tar.gz
Propper indentation and xml support
Diffstat (limited to 'roles')
-rw-r--r--roles/httpd/templates/httpd.conf.j223
1 files changed, 12 insertions, 11 deletions
diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2
index aef96c5..a39f46f 100644
--- a/roles/httpd/templates/httpd.conf.j2
+++ b/roles/httpd/templates/httpd.conf.j2
@@ -3,27 +3,28 @@
# managed by Ansible
types {
- text/plain txt pgp pub
- text/html html htm
text/css css
- image/svg+xml svg
- image/jpeg jpeg jpg
+ text/html html htm
+ text/plain txt pgp pub
image/gif gif
+ image/jpeg jpeg jpg
image/png png
+ image/svg+xml svg
+ application/xml xml rss
}
{% if ansible_host == global.dcontroller %}
server "default" {
- listen on localhost port 8888
+ listen on localhost port 8888
location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
+ root "/acme"
+ request strip 2
+ }
- location * {
- block return 302 "https://\$HTTP_HOST\$REQUEST_URI"
- }
+ location * {
+ block return 302 "https://\$HTTP_HOST\$REQUEST_URI"
+ }
}
{% endif %}
remember that computers suck.