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



                                  
               
                                                      


                                                  
 
              

                            
                          
         

                 


                                          

# httpd ~~ /etc/httpd.d/cgit.conf"
# 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.