最佳答案
如上所述,
原文链接:https://www.f2er.com/nginx/434962.htmlnginx-gitlab-http.conf
由sudo gitlab-ctl reconfigure管理.
请注意,它被称为Nginx-gitlab-http.conf,而不是gitlab-http.conf.
它在gitlab-cookbooks/gitlab/recipes/nginx.rb
中用于生成gitlab-http.conf
在gitlab-ctl重新配置后,您应该看到:
Recipe: gitlab::Nginx
* directory[/var/opt/gitlab/Nginx] action create (up to date)
* directory[/var/opt/gitlab/Nginx/etc] action create (up to date)
* directory[/var/log/gitlab/Nginx] action create (up to date)
* template[/var/opt/gitlab/Nginx/etc/gitlab-http.conf] action create (up to date)
...
仔细检查/etc/gitlab/gitlab.rb是否存在任何差异,这可能解释了为什么不重新创建此文件的原因.
确保执行sudo(如在sudo gitlab-ctl reconfigure中)以避免任何权限问题.