From d3a825d19821ff9318615ac022de89a328c41ccd Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 9 Jan 2009 00:27:37 +0000 Subject: added gitwebrepo share possibility for lighttpd --- templates/web/config | 30 ++++++++++++++++++++++++++++++ templates/web/lighttpd | 6 ++++++ 2 files changed, 36 insertions(+) create mode 100644 templates/web/config create mode 100644 templates/web/lighttpd (limited to 'templates/web') diff --git a/templates/web/config b/templates/web/config new file mode 100644 index 0000000..9bcaac0 --- /dev/null +++ b/templates/web/config @@ -0,0 +1,30 @@ +# Include the global configuration, if found. +do "/etc/gitweb.conf" if -e "/etc/gitweb.conf"; + +# Point to projects.list file generated by gitosis. +# Here gitosis manages the user "git", who has a +# home directory of /srv/example.com/git +$projects_list = "<%= _projects_list %>"; + +# Where the actual repositories are located. +$projectroot = "<%= projectroot %>"; + +# By default, gitweb will happily let people browse any repository +# they guess the name of. This may or may not be what you wanted. I +# choose to allow gitweb to show only repositories that git-daemon +# is already sharing anonymously. +$export_ok = "git-daemon-export-ok"; + +# Alternatively, you could set these, to allow exactly the things in +# projects.list, which in this case is the repos with gitweb=yes +# in gitosis.conf. This means you don't need daemon=yes, but you +# can't have repositories hidden but browsable if you know the name. +# And note gitweb already allows downloading the full repository, +# so you might as well serve git-daemon too. +# $export_ok = ""; +# $strict_export = "true"; + +# A list of base urls where all the repositories can be cloned from. +# Easier than having per-repository cloneurl files. +@git_base_url_list = ('git://<%= gitweb_url %>'); + diff --git a/templates/web/lighttpd b/templates/web/lighttpd new file mode 100644 index 0000000..c7a5130 --- /dev/null +++ b/templates/web/lighttpd @@ -0,0 +1,6 @@ +$HTTP["host"] == "<%= $gitweb_url %>" { + setenv.add-environment = ( + "GITWEB_CONFIG" => "/etc/gitweb.d/${name}.conf", + ) + cgi.assign = ( "" => "" ) +} -- cgit v1.2.3