読者です 読者をやめる 読者になる 読者になる

Gitlabをサブディレクトリ運用

# vi /var/opt/gitlab/gitlab-shell/config.yml

-    #gitlab_url: "http://127.0.0.1:8080"
+    gitlab_url: "http://127.0.0.1:8080/gitlab"

# vi /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

-    # relative_url_root: /gitlab
+    relative_url_root: /gitlab


# vi /opt/gitlab/embedded/service/gitlab-rails/config/application.rb

-    # config.relative_url_root = "/gitlab"
+    config.relative_url_root = "/gitlab"

# vi /var/opt/gitlab/gitlab-rails/etc/unicorn.rb

+ ENV['RAILS_RELATIVE_URL_ROOT'] = '/gitlab'