From bd7901775511af9a3296519d030227bc82ee3581 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 6 Dec 2018 15:46:13 -0500 Subject: make the cgit role use LE --- roles/cgit/templates/vhost.conf | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'roles/cgit/templates/vhost.conf') 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' %} - - {% 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 }} - - -{% endfor %} +RedirectMatch ^/$ /cgit/ -- cgit