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 GITWEB_PROJECTROOT /srv/git
|
||||||
SetEnv GIT_HTTP_EXPORT_ALL
|
|
||||||
|
|
||||||
Alias /static/ /var/www/git/static/
|
Alias /static/ /var/www/git/static/
|
||||||
|
|
||||||
|
@ -19,6 +18,5 @@ ScriptAliasMatch \
|
||||||
|
|
||||||
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
|
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
|
||||||
<Location />
|
<Location />
|
||||||
SetEnv GITWEB_CONFIG /etc/gitweb.conf
|
|
||||||
DirectoryIndex gitweb.cgi
|
DirectoryIndex gitweb.cgi
|
||||||
</Location>
|
</Location>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# location of git repos
|
# read git repo root from env or use default
|
||||||
our $projectroot = "/srv/git";
|
our $projectroot = $ENV{'GITWEB_PROJECTROOT'};
|
||||||
|
|
||||||
# site name
|
# site name
|
||||||
our $site_name = "foo.sh - Public GIT repositories";
|
our $site_name = "foo.sh - Public GIT repositories";
|
||||||
|
|
Loading…
Add table
Reference in a new issue