summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-03-06 00:57:11 +0100
committerMichael Scherer <misc@zarb.org>2015-03-06 00:57:11 +0100
commit830b295464c20dfa23e8292d8a6a0691a8a70019 (patch)
tree313d5b049d6bea5da680a3071edaa5d8a48a6050
parentde2220a44fcc0735a1d4c2810329a342b0f75084 (diff)
Fix deployment on port 443
-rw-r--r--roles/cgit/templates/vhost.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/cgit/templates/vhost.conf b/roles/cgit/templates/vhost.conf
index 8b26d0b..3243867 100644
--- a/roles/cgit/templates/vhost.conf
+++ b/roles/cgit/templates/vhost.conf
@@ -1,7 +1,12 @@
# {{ ansible_managed }}
{% for i in '80', '443' %}
<VirtualHost *:{{ i }}>
-
+ {% if i == '443" %}
+ # TODO fix the key
+ SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
+ SSLCertificateFile /etc/pki/tls/certs/localhost.crt
+ SSLEngine on
+ {% endif %}
Alias /cgit-data /usr/share/cgit
ScriptAlias /cgit /var/www/cgi-bin/cgit