哪里可以找到GitLab安装目录?

meh*_*any 0 gitlab digital-ocean

我正在我的 GitLab 安装上设置 SSL 证书。我正在尝试找到根目录来上传文件(用于通过 http 进行 ssl 验证),但我不确定 Gitlab 根目录在哪里。

请告诉我在哪里可以找到它?

meh*_*any 5

目录结构 Omnibus-gitlab 使用四个不同的目录。

/opt/gitlab holds application code for GitLab and its dependencies.

/var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to.

/etc/gitlab holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.

/var/log/gitlab contains all log data generated by components of omnibus-gitlab.

Omnibus-gitlab and SELinux
Run Code Online (Sandbox Code Playgroud)

虽然omnibus-gitlab在启用了SELinux的系统上运行,但它不使用SELinux限制功能:

  • omn​​ibus-gitlab 创建不受限制的系统用户;
  • omn​​ibus-gitlab 服务在不受限制的环境中运行。

通过 SSH 访问 Git 的正确操作取决于 /var/opt/gitlab/.ssh 的标签。如果需要,您可以通过运行 sudo gitlab-ctl reconfigure 来恢复此标签。

根据您的平台,gitlab-ctl reconfigure 将安装 GitLab 工作所需的 SELinux 模块。这些模块列在 files/gitlab-selinux/README.md 中。

NSA,如果您正在阅读本文,我们将非常感激您能贡献一个omnibus-gitlab 的 SELinux 配置文件:) 当然,如果其他人正在阅读本文,我们也欢迎您贡献 SELinux 配置文件。

来源

感谢@Drew Blessing 指示我在综合性阅读。我最终使用了不同的 SSL 验证方法,因此我不需要将文件上传到 GitLab 的根目录。