blob: c759649ae7ec996131f7138853ca2a594a74adc0 (
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 %}
|