diff options
author | Michael Scherer <misc@redhat.com> | 2018-12-06 15:30:35 -0500 |
---|---|---|
committer | Michael Scherer <misc@redhat.com> | 2018-12-06 15:30:35 -0500 |
commit | b927c705bf6efbe234b98235c20380adac892c1b (patch) | |
tree | 9e09761d3bae79ab3d315a6fd786703df29608b2 /roles | |
parent | b6d26ccd73052fc883883e9a05af363e7442011c (diff) |
Add the trick for LE
Diffstat (limited to 'roles')
-rw-r--r-- | roles/cgit/templates/vhost.conf | 4 |
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 |