summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2018-12-06 15:30:35 -0500
committerMichael Scherer <misc@redhat.com>2018-12-06 15:30:35 -0500
commitb927c705bf6efbe234b98235c20380adac892c1b (patch)
tree9e09761d3bae79ab3d315a6fd786703df29608b2
parentb6d26ccd73052fc883883e9a05af363e7442011c (diff)
Add the trick for LE
-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