From 830b295464c20dfa23e8292d8a6a0691a8a70019 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 6 Mar 2015 00:57:11 +0100 Subject: Fix deployment on port 443 --- roles/cgit/templates/vhost.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' %} - + {% 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 -- cgit