簡體   English   中英

centos 8 上預安裝的 nginx 服務器上的 gitlab-ce 給出 502 錯誤

[英]gitlab-ce on pre-installed nginx server on centos 8 gives 502 error

我收到了502 糟糕,GitLab 花費了太多時間來響應我在 CENTOS 8 (nginx/1.16.1) 上手動安裝 Gitlab-ce 13.2.4 的錯誤。

我下載了 rpm gitlab-ce-13.2.4-ce.0.el8.x86_64.rpm

  • dnf -y install policycoreutils-python-utils
  • rpm -Uvh gitlab-ce-13.2.4-ce.0.el8.x86_64.rpm
  • /etc/gitlab/gitlab.rb >> external_url "https://git.mydomain.com"
  • /etc/gitlab/gitlab.rb >> nginx['enable'] = false
  • /etc/gitlab/gitlab.rb >> web_server['external_users'] = ['nginx']
  • /etc/gitlab/gitlab.rb >> gitlab_rails['trusted_proxies'] = [ '172.16.1.0/24', '192.168.10.0/24']
  • /etc/nginx/conf.d/git.mydomain.com.conf >> https://gitlab.com/gitlab-org/gitlab-foss/-/raw/master/lib/support/nginx/gitlab-ssl
  • systemctl restart nginx
  • gitlab-ctl reconfigure

我的git.mydomain.com.conf

我的 selinux 阻止 url 運行。 可能是 gitlab 目錄訪問。 我運行setenforce 0並且它起作用了(雖然這不是一個好習慣)。

編輯:chcon -R -t httpd_sys_rw_content_t /var/opt/gitlab/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM