summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/cgit/templates/vhost.conf4
1 files changed, 4 insertions, 0 deletions
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