From a0341282c3eef05cf19c10e10f783e3c5536c8b0 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 24 May 2016 10:19:24 -0400 Subject: Squashed 'puppet/modules/git/' content from commit ba5dd8d git-subtree-dir: puppet/modules/git git-subtree-split: ba5dd8d5c8e09d521ff49f1ebc753601e449f828 --- templates/web/lighttpd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 templates/web/lighttpd (limited to 'templates/web/lighttpd') diff --git a/templates/web/lighttpd b/templates/web/lighttpd new file mode 100644 index 00000000..cf244691 --- /dev/null +++ b/templates/web/lighttpd @@ -0,0 +1,21 @@ +$HTTP["host"] == "<%= gitweb_url %>" { + url.redirect += ( + "^$" => "/", + ) + + <%- if logmode.to_s == 'anonym' -%> + accesslog.format = "127.0.0.1 %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" + <%- end -%> + + alias.url += ( + "/static/gitweb.css" => "/var/www/git/static/gitweb.css", + "/static/git-logo.png" => "/var/www/git/static/git-logo.png", + "/static/git-favicon.png" => "/var/www/git/static/git-favicon.png", + "/" => "/var/www/git/gitweb.cgi", + ) + + setenv.add-environment = ( + "GITWEB_CONFIG" => "<%= gitweb_config %>" + ) + cgi.assign = ( ".cgi" => "" ) +} -- cgit v1.2.3