Gitlab on port 8080

佐手、 提交于 2020-01-11 02:22:42

问题


I'm currently in the process of trying to get Gitlab omnibus installed on my private Debian server, and it works perfectly on port 80, the problem is I also have an Apache server listening on port 80. So I'm trying to get Nginx listening on port 8080 but for some reason I'm getting a "502 Gitlab is not responding" Error I have edited both "external_url" in gitlab.rb and also the port number under the server block in the nginx.conf file. and no joy.

If someone could help me that would be great!


回答1:


Most likely you have another service listening on 8080, I think the omnibus install have some service hooking 8080 - just use 8081 instead.

Edit: I just did a quick search and found that it's the unicorn server that is listening to 8080 with the original omnibus installer.

Note: You will only need to change the external_url in gitlab.rb, no other config file should have to be edited for this.

Edit#2: As @emeraldjava stated there is an option in the configuration file for using another unicorn port: #unicorn['port'] = '8080'




回答2:


I solved this for Gitlab Omnibus (Community Edition, version 10.1.4) by first setting these in /etc/gitlab/gitlab.rb:

unicorn['port'] = 8081
gitlab_workhorse['auth_backend'] = "http://localhost:8081"

Then running:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

Additionally, if you are running GitLab behind an SSL reverse proxy, you may need to restart that service to get past the cached 502 error page.



来源:https://stackoverflow.com/questions/29320022/gitlab-on-port-8080

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!