summaryrefslogtreecommitdiff
path: root/roles/cgit/templates/server.conf.j2
blob: bd9de27e9d15543ff8816ac95483cfd0344f9671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ServerAdmin nobody-wolpertinger@nowhere.ws
ServerName {{ git_server_name }}

# Serve static cgit files directly
Alias /static /var/www/{{ git_server_name }}/static
Alias /robots.txt /var/www/{{ git_server_name }}/robots.txt
<Directory /var/www/{{ git_server_name }}>
	AllowOverride None
	Options FollowSymlinks
	Require all granted
</Directory>

# Dispatch other requests to CGI
ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
<Directory /usr/lib/cgit>
	AllowOverride None
	Options ExecCGI FollowSymlinks
	Require all granted
</Directory>