官方文档
- https://docs.gitlab.com/ee/install/relative_url.html
Install GitLab under a relative URL
- /home/git/gitlab/config/initializers/relative_url.rb
cp /home/git/gitlab/config/initializers/relative_url.rb.sample \ /home/git/gitlab/config/initializers/relative_url.rb vim /home/git/gitlab/config/initializers/relative_url.rb config.relative_url_root = "/codes"
- /home/git/gitlab/config/gitlab.yml
vim /home/git/gitlab/config/gitlab.yml relative_url_root: /codes
- /home/git/gitlab/config/puma.rb
vim /home/git/gitlab/config/puma.rb ENV['RAILS_RELATIVE_URL_ROOT'] = "/codes"
- /home/git/gitlab-shell/config.yml
vim /home/git/gitlab-shell/config.yml gitlab_url: http://127.0.0.1/codes
- /etc/default/gitlab
vim /etc/default/gitlab # gitlab_workhorse_options -authBackend http://127.0.0.1:8080/codes
- /home/git/gitaly/config.toml
vim /home/git/gitaly/config.toml [gitlab] url = "http://127.0.0.1/codes"
Restart
- gitaly
- gitlab
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » gitlab配置统一前缀路径源码版
发表评论 取消回复