That users who have to write access to /etc/gitlab/gitlab.rb can add configuration that will be executed as code by root. The reason for strict permissionsĪnd ownership is that /etc/gitlab/gitlab.rb is being executed as Ruby code by the root user during gitlab-ctl reconfigure. This file has strict file permissions and is owned by the root user. Omnibus GitLab package loads all configuration from /etc/gitlab/gitlab.rb file. Loading external configuration file from non-root user In that case, make sure that the chown command above is run with the right User, user and gitlab_rails in gitlab.rb. User and path might be different if you changed the defaults of Sudo chown -R git:git /var/opt/gitlab/gitlab-rails/tmp/cache Sudo NO_PRIVILEGE_DROP = true USE_DB = false gitlab-rake assets:clean assets:precompile Memory by shutting down Puma and Sidekiq with the following
(Optional) If you run short on resources, you can temporarily free up some To avoid out-of-memoryĮrrors, you should have at least 2GB of RAM available on your system, while weįollow the steps below to enable relative URL in GitLab:
Task that consumes a lot of CPU and memory resources. Omnibus with a relative URL, the assets will need to be recompiled, which is a If you are running a package before 8.17 and you configure The Omnibus GitLab package is shipped with pre-compiled assets (CSS, JavaScript,įonts, etc.). Starting with 8.17 packages, there is no need to recompile assets. Manually edit them in any local repository that points to your GitLab instance. Note that by changing the URL, all remote URLs will change, so you’ll have to In that case, GitLab can alsoīe installed under a relative URL, for example. This is not possible due to a variety of reasons. While it is recommended to install GitLab in its own (sub)domain, sometimes NoteRelative URL support in Omnibus GitLab is experimental and was New installations starting from GitLab 7.6, will haveĪll the options of the template as of installation listed in See package defaultsįor a list of default settings and visit theįor a complete list of available options. GitLab is configured by setting the relevant options in