重新创建gitlabs nginx conf文件

weixin_38048397 2019-09-12 12:46:44
我刚刚删除了我的gitlab omnibus nginx conf文件.是否可以重新创建? 使用gitlab-ci reconfigure似乎不起作用.但是我看到一些ruby模板负责创建nginx conf
...全文
43 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38051598 2019-09-12
  • 打赏
  • 举报
回复
如上所述,nginx-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中)以避免任何权限问题.

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧