aboutsummaryrefslogblamecommitdiffstats
path: root/roles/cgit/templates/etc-httpd.d-cgit.conf.j2
blob: 6fb8e98089a37a425aa073eb40a662e18fb6b1ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                              


                                                  









                                                                 

# httpd ~~ /etc/httpd.d/cgit.conf"
# managed by Ansible

ext_ip="0.0.0.0"
server "cgit" {
	listen on $ext_ip port {{ cgit_port }}
{% if cgit_authenticate %}
	authenticate "realm" with "/htpasswd/cgit"
{% endif %}

	# serve cgit static files directly: cgit.css and cgit.png
	location "/cgit.*" {
		root "/cgit"
			no fastcgi	
	}
	# cgit CGI
	root "/cgi-bin/cgit.cgi"
	fastcgi socket "/run/slowcgi.sock"
}
remember that computers suck.