summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/vhost.conf
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2018-12-06 15:46:13 -0500
committerMichael Scherer <misc@redhat.com>2018-12-06 15:46:13 -0500
commitbd7901775511af9a3296519d030227bc82ee3581 (patch)
tree72c6f3f1f99d2b100c2f99fe0a0380b27523c4f6 /roles/cgit/templates/vhost.conf
parent25ba91ef0bf424087dc30a417a6b3758f876fffa (diff)
make the cgit role use LE
Diffstat (limited to 'roles/cgit/templates/vhost.conf')
-rw-r--r--roles/cgit/templates/vhost.conf22
1 files changed, 3 insertions, 19 deletions
diff --git a/roles/cgit/templates/vhost.conf b/roles/cgit/templates/vhost.conf
index 1340966..504d4e3 100644
--- a/roles/cgit/templates/vhost.conf
+++ b/roles/cgit/templates/vhost.conf
@@ -1,21 +1,5 @@
# {{ ansible_managed }}
-{% for i in '80', '443' %}
-<VirtualHost *:{{ i }}>
- {% if i == '443' %}
- SSLCertificateKeyFile /etc/pki/tls/private/git.{{ ansible_domain }}.key
- SSLCertificateFile /etc/pki/tls/certs/git.{{ ansible_domain }}.crt
- SSLEngine on
- {% else %}
- Alias /.well-known/acme-challenge/ /var/www/letsencrypt/git.{{ ansible_domain }}/.well-known/acme-challenge/
+Alias /cgit-data /usr/share/cgit
+ScriptAlias /cgit /var/www/cgi-bin/cgit
- {% endif %}
-
- Alias /cgit-data /usr/share/cgit
- ScriptAlias /cgit /var/www/cgi-bin/cgit
-
- RedirectMatch ^/$ /cgit/
-
- ServerName git.{{ ansible_domain }}
-
-</VirtualHost>
-{% endfor %}
+RedirectMatch ^/$ /cgit/