docker/redmine-git-integration/git-http.conf
2019-06-06 11:46:36 +08:00

29 lines
768 B
Plaintext

<VirtualHost *:80>
ServerName git.kennylee.cn
DocumentRoot /home/git
SetEnv GIT_PROJECT_ROOT /home/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
PerlLoadModule Apache2::Redmine
<Location "/git">
Order allow,deny
Allow from all
AuthType Basic
AuthName "Redmine git repositories"
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine;host=192.168.1.99:port=5306"
# config your password
RedmineDbUser "redmine"
RedmineDbPass "timekey123456"
RedmineGitSmartHttp yes
</Location>
</VirtualHost>