diff options
-rw-r--r-- | tools/conf/etc/gitweb.conf | 16 | ||||
-rw-r--r-- | tools/gitolite.html | 10 |
2 files changed, 22 insertions, 4 deletions
diff --git a/tools/conf/etc/gitweb.conf b/tools/conf/etc/gitweb.conf new file mode 100644 index 0000000..b7bd004 --- /dev/null +++ b/tools/conf/etc/gitweb.conf @@ -0,0 +1,16 @@ +our $git_temp = "/srv/www/gitweb_tmp"; + +our $projects_list = "/srv/gitolite/projects.list"; +# The directories where your projects are. Must not end with a slash. +our $projectroot = "/srv/gitolite/repositories"; + +# Base URLs for links displayed in the web interface. +our @git_base_url_list = qw(git://core.privat-network.com http://git@core.private-network.com); + +our $projects_list_group_categories = 1; +# By default, gitweb will happily let people browse any repository +# they guess the name of. This may or may not be what you want. +# I prefer to set these, to allow exactly the repositories in +# projects.list to be browsed. +$export_ok = ""; +$strict_export = "true"; diff --git a/tools/gitolite.html b/tools/gitolite.html index 2beae97..2ff5a85 100644 --- a/tools/gitolite.html +++ b/tools/gitolite.html @@ -429,13 +429,16 @@ <p>Edit /etc/gitweb.conf</p> <pre> - our $git_temp = "/tmp"; + our $git_temp = "/srv/www/gitweb_tmp"; + our $projects_list = "/srv/gitolite/projects.list"; # The directories where your projects are. Must not end with a slash. - our $projectroot = "/srv/gitolite/repositories"; + our $projectroot = "/srv/gitolite/repositories"; # Base URLs for links displayed in the web interface. our @git_base_url_list = qw(git://core.privat-network.com http://git@core.private-network.com); + + our $projects_list_group_categories = 1; </pre> <h3>5.2. Configure nginx</h3> @@ -496,10 +499,9 @@ <pre> $ sudo chown -R gitolite:gitolite /srv/gitolite $ sudo chmod g+rx /srv/gitolite/projects.list - $ sudo chmod -R g+rx /srv/gitolite/repositories/ + $ sudo chmod -R 755 /srv/gitolite/repositories/ </pre> - <p>Edit gitolite-admin/conf/gitolite.conf;</p> <pre> |