diff options
Diffstat (limited to 'roles/cgit/templates/vhost.conf')
-rw-r--r-- | roles/cgit/templates/vhost.conf | 22 |
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/ |