summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-03-06 10:28:00 +0100
committerMichael Scherer <misc@zarb.org>2015-03-06 10:35:09 +0100
commit6f400a06ab6752d3dcc87e90a8cd4868f42030d2 (patch)
treefd3e4da6471f11e67bf261418224246264112003 /roles
parentfa0855ec80a5a03de61545d94cbbfdc4be3dff4d (diff)
Use a specific key for the domain
Diffstat (limited to 'roles')
-rw-r--r--roles/cgit/templates/vhost.conf5
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/cgit/templates/vhost.conf b/roles/cgit/templates/vhost.conf
index c759649..0b6ad5b 100644
--- a/roles/cgit/templates/vhost.conf
+++ b/roles/cgit/templates/vhost.conf
@@ -2,9 +2,8 @@
{% 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
+ SSLCertificateKeyFile /etc/pki/tls/private/git.{{ ansible_domain }}.key
+ SSLCertificateFile /etc/pki/tls/certs/git.{{ ansible_domain }}.crt
SSLEngine on
{% endif %}
Alias /cgit-data /usr/share/cgit