mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
29 lines
771 B
Plaintext
29 lines
771 B
Plaintext
<VirtualHost *:80>
|
|
ServerName git.timekey.com.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>
|