当安装gitolite时,我发现: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. Need to get 114 kB of archives. After unpacking 348 kB will be used. Get:1 http://security.debian.org/ squeeze/updates/main gitolite all 1.5.4-2+squeeze1 [114 kB] Fetched 114 kB in 0s (202 kB/s) […]
我试图设置一个服务器,我的git repo可以通过HTTP(S)访问。 我使用gitolite和nginx(和web界面的gitlab,但我怀疑它有任何区别)。 我搜查了整个下午,我觉得我卡住了。 我想我已经明白了,nginx需要fcgiwrap才能和gitolite一起工作,所以我尝试了几种configuration,但都没有工作。 我的仓库在/ home / git / repositories。 这是我尝试过的三个nginxconfiguration。 1: location ~ /git(/.*) { gzip off; root /usr/lib/git-core; fastcgi_pass unix:/var/run/fcgiwrap.socket; include /etc/nginx/fcgiwrap.conf; fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; fastcgi_param DOCUMENT_ROOT /usr/lib/git-core/; fastcgi_param SCRIPT_NAME git-http-backend; fastcgi_param GIT_HTTP_EXPORT_ALL ""; fastcgi_param GIT_PROJECT_ROOT /home/git/repositories; fastcgi_param PATH_INFO $1; #fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; } 结果: > git clone http://myservername/projectname.git test/ Cloning into […]
如果我使用的东西像gitolite来处理访问控制authorized_keys规模如何? 意思是说,如果我有5万用户说什么performance会是什么样子(我猜测不是很好)。 有什么select? 更新:我决定自己做一些testing(我应该首先完成)。 我写了一个简单的脚本来生成SSH密钥,并将它们添加到authorized_keys文件中。 我的电脑速度不是那么快,所以我只生成了8061个按键,然后把我自己的按键添加到了最后,文件最终达到了3.1MB。 然后我用一个文件添加了一个git仓库,并运行git clone三次: With 8,061 keys (Mine is at the end of the file) real 0m0.442s real 0m0.447s real 0m0.458s With just a single key: real 0m0.248s real 0m0.264s real 0m0.255s performance比我想象的要好得多。 我仍然对任何替代scheme都非常感兴趣,这些替代scheme对于50,000+以上的大组密钥可能会更快一些。
(这是ssh的问题,而不是gitolite) 我在家用服务器上configuration了gitolite(Ubuntu 12.04 server,open-ssh)。 我想要一个特殊的身份文件来pipe理存储库,所以我需要通过ssh访问我自己的主机使用两个不同的身份密钥。 这是我的.ssh / config文件的内容: Host gitadmin.gammu.com User git IdentityFile /home/alvaro/.ssh/id_gitolite_mantra Host git.gammu.com User git IdentityFile /home/alvaro/.ssh/id_alvaro_mantra 这是我的主机文件的内容: # Git 127.0.0.1 gitadmin.gammu.com 127.0.0.1 git.gammu.com 所以我应该能够通过这种方式与gitolite进行沟通,以便使用“正常”帐户进行访问: $ssh git.gammu.com 这种方式来访问pipe理帐户: $ssh gitadmin.gammu.com 当我尝试使用普通帐户访问时,一切正常: alvaro@mantra:~/.ssh$ ssh git.gammu.com PTY allocation request failed on channel 0 hello alvaro, this is gitolite 2.2-1 (Debian) running on git 1.7.9.5 […]