From 59185bfdb10c6daab56f75ead3a32151413651c8 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 17 Mar 2021 22:42:17 +0100 Subject: Propper indentation and xml support --- roles/httpd/templates/httpd.conf.j2 | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'roles') 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 %} -- cgit v1.2.3