Changing the default Gitlab port

后端 未结 3 1234
你的背包
你的背包 2021-02-06 15:11

I have installed the latest Gitlab-CE (8.10) on CentOS 7 (fresh install) via the Omnibus package as described here: https://about.gitlab.com/downloads/#centos7

Now, I wo

3条回答
  •  天涯浪人
    2021-02-06 15:27

    I changed the etc/gitlab.rb following the comments above and my port did not change.

    external_url http://localhost:13080/
    ...
     nginx['proxy_set_headers'] = {
      "X-Real-IP" => "$remote_addr",
      "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
      "X-Forwarded-Proto" => "https",
      "X-Forwarded-Ssl" => "on",
      "X-Forward-Port" => "13080",
      "Host" => "localhost:13080"
    }
    
    gitlab-ctl reconfigure
    gitlab-ctl restart
    

提交回复
热议问题