blob: 0b6ad5b453acf1ba7e622a0e0d93ac042e7ab1aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# {{ ansible_managed }}
{% for i in '80', '443' %}
<VirtualHost *:{{ i }}>
{% if i == '443' %}
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
ScriptAlias /cgit /var/www/cgi-bin/cgit
RedirectMatch ^/$ /cgit/
ServerName git.{{ ansible_domain }}
</VirtualHost>
{% endfor %}
|