git/server: Set projectroot in environment
This commit is contained in:
parent
9ba2fa35df
commit
eb61bb9448
2 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
|
||||
SetEnv GIT_PROJECT_ROOT /srv/git
|
||||
SetEnv GIT_HTTP_EXPORT_ALL
|
||||
SetEnv GITWEB_PROJECTROOT /srv/git
|
||||
|
||||
Alias /static/ /var/www/git/static/
|
||||
|
||||
|
@ -19,6 +18,5 @@ ScriptAliasMatch \
|
|||
|
||||
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
|
||||
<Location />
|
||||
SetEnv GITWEB_CONFIG /etc/gitweb.conf
|
||||
DirectoryIndex gitweb.cgi
|
||||
</Location>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# location of git repos
|
||||
our $projectroot = "/srv/git";
|
||||
# read git repo root from env or use default
|
||||
our $projectroot = $ENV{'GITWEB_PROJECTROOT'};
|
||||
|
||||
# site name
|
||||
our $site_name = "foo.sh - Public GIT repositories";
|
||||
|
|
Loading…
Add table
Reference in a new issue