From b927c705bf6efbe234b98235c20380adac892c1b Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 6 Dec 2018 15:30:35 -0500 Subject: Add the trick for LE --- roles/cgit/templates/vhost.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles') diff --git a/roles/cgit/templates/vhost.conf b/roles/cgit/templates/vhost.conf index 0b6ad5b..1340966 100644 --- a/roles/cgit/templates/vhost.conf +++ b/roles/cgit/templates/vhost.conf @@ -5,7 +5,11 @@ 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/ + {% endif %} + Alias /cgit-data /usr/share/cgit ScriptAlias /cgit /var/www/cgi-bin/cgit -- cgit