问题1:
gitlab配置完之后使用ssh方式可以clone 也可以push,但是使用http或者https方式出错,git clone时,提示:warning: 您似乎克隆了一个空版本库;git push时,提示:error: Cannot access URL https://server_name/ppp/bbb.g... return code 22
fatal: git-http-push failed
/home/git/gitlab/config/gitlab.yml配置如下:
host: server_name
port: 443
https: true
email_enabled: true
email_from: myemail@server_name
/home/git/gitlab-shell/config.yml配置如下:
nginx配置为:cp /home/git/gitlab/lib/support/nginx/gitlab-ssl /etc/nginx/conf.d/gitlab.conf
修改了其中的server_name、ssl_certificate、ssl_certificate_key、proxy_pass 几项。其中proxy_pass改为 http://127.0.0.1:8888;8888端口为/home/git/gitlab/config/unicron.rb中listen "0.0.0.0:8888", :tcp_nopush => true。(8080端口跑着tomcat,所以改为8888)。跪求大神,是哪里的问题啊!
问题2:
如果设置proxy_pass http://gitlab-workhorse; 访问gitlab会报403错误。/home/git/gitlab/config/unicron.rb文件中的listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 1024
也并没有注释,gitlab.socket文件也存在,权限如下:
srwxrwxrwx 1 git git 0 Apr 1 11:45 /home/git/gitlab/tmp/sockets/gitlab.socket
究竟是哪里出问题了?