blob: 3243867f5fcf8f17bec76a3d05dcab3e1901bf9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# {{ 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
RedirectMatch ^/$ /cgit/
ServerName git.{{ ansible_domain }}
</VirtualHost>
{% endfor %}
|