aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/httpd.conf.j2
blob: 962016a4e7e915b3c27cf8395fd223de576311e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# managed by Ansible

server "cgit" {
	listen on "{{ cgit_ip }}" port {{ cgit_port }}
{% if cgit_authenticate %}
	authenticate "realm" with "/htpasswd/cgit"
{% endif %}

	# cgit
	location "/cgit.*" {
		root "/cgit"
		no fastcgi
	}

	# fastcgi
	root "/cgi-bin/cgit.cgi"
	fastcgi socket "/run/slowcgi.sock"
}
remember that computers suck.