且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何设置git的服务器,不使用SSH身份验证

更新时间:2023-09-20 17:45:28

您可以使用gitolite与能够提供认证(所以排除了它没有认证Git协议)的任何服务。

You can use gitolite with any service able to provide an authentication (so rules out the git protocol which has no authentication).

HTTPS配置会调用gitolite与Apache服务器将分给gitolite脚本的ID。

My https configuration will call gitolite with the id that the apache server will give to the gitolite script.

ScriptAlias /hgit/ @H@/sbin/gitolite-shell/
SetEnv GIT_HTTP_BACKEND "@H@/usr/local/apps/git/libexec/git-core/git-http-backend"
<Location /hgit>
   ...
</Location>