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

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

本文介绍了在哪里可以找到GitLab安装目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



请问我要在哪里找到或找到它?

解决方案

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

  / opt / gitlab保存GitLab的应用程序代码,它的依赖关系。 

/ var / opt / gitlab保存gitlab-ctl重新配置写入的应用程序数据和配置文件。

/ etc / gitlab保存omnibus-gitlab的配置文件。这些是您唯一必须手动编辑的文件。

/ var / log / gitlab包含由omnibus-gitlab组件生成的所有日志数据。

Omnibus-gitlab和SELinux

尽管omnibus-gitlab在以下系统上运行启用了SELinux,但不使用SELinux限制功能:




  • omnibus-gitlab创建不受限制的系统用户;

  • omnibus-gitlab服务在不受限制的上下文中运行。



通过SSH进行Git访问的正确操作取决于/的标签var / opt / gitlab / .ssh。如果需要,可以通过运行sudo gitlab-ctl reconfigure来恢复此标签。这些模块列在files / gitlab-selinux / README.md中。



NSA,如果您正在阅读本文,我们将不胜感激。 omn​​ibus-gitlab的SELinux配置文件:)当然,如果其他人正在阅读本文,也欢迎您提供SELinux配置文件。



来源



感谢@Drew Blessing指出我可以阅读综合专辑。我最终使用了另一种方法进行SSL验证,因此不需要将文件上传到GitLab的根目录。


I am setting up a SSL certificate on my GitLab installation. I am trying to find the root directory to upload a file ( for ssl validation via http ) but I am not sure where is the Gitlab root Dir.

Kindly, point me to where to look or find it?

解决方案

Directory structureOmnibus-gitlab uses four different directories.

/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

Although omnibus-gitlab runs on systems that have SELinux enabled, it does not use SELinux confinement features:

  • omnibus-gitlab creates unconfined system users;
  • omnibus-gitlab services run in an unconfined context.

The correct operation of Git access via SSH depends on the labeling of /var/opt/gitlab/.ssh. If needed you can restore this labeling by running sudo gitlab-ctl reconfigure.

Depending on your platform, gitlab-ctl reconfigure will install SELinux modules required to make GitLab work. These modules are listed in files/gitlab-selinux/README.md.

NSA, if you're reading this, we'd really appreciate it if you could contribute back a SELinux profile for omnibus-gitlab :) Of course, if anyone else is reading this, you're welcome to contribute the SELinux profile too.

Source

Thanks to @Drew Blessing who pointed me to read on omnibus. I end up using a different method for SSL validation so I didnt need to upload a file to the root directory of GitLab.

这篇关于在哪里可以找到GitLab安装目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 19:55