GitLab Custom Login Page

I am looking to perform a minimal setup of GitLab CE using my own graphical objects: brand_logo.png, favicon.ico, logo-black.png, logo-white.png I came across:

https://kovah.me/customize-gitlab-installation/

http://axilleas.me/en/blog/2014/custom-gitlab-login-page/

I want to avoid the approach in the first, since I would prefer not to interfere with any files other than the image. I tried the approach on the latter, but could not get it to work with my omnibus installation (Ubuntu 12.04). I get a flurry of errors when trying to recompile assets. Any tips?

+5
source share
2 answers

Currently, gitlab-ce allows you to change the text and logos on the company login page for more information.

When editing, there was a discussion about the possibility of changing the icon.

If you need to make more aggressive changes, see below.

Old answer:

If you have no plans to upgrade gitlab (or do you mind repeating this process each time you upgrade), try the following:

Change the desired assets, path: / Wholesale / gitlab / built-in / service / gitlab rails / application / assets / images /

after that, clear the resource cache:

gitlab-rake assets: clean RAILS_ENV = production

and generate them (I had some permission errors with this, nothing chmod 777 could fix, just try returning them back to their original state)

gitlab-rake assets: precompile RAILS_ENV = production

and finally restart

sudo gitlab-ctl restart

+11
source

my second link :) I was going to write a message about user login in omnibus, but if you really want to do it right, you will need to create your own omnibus package. Basically, it boils down to the following:

  • Follow my posts to make any custom changes and click on a branch in github or on your gitlab repository.
  • Clone omnibus-gitlab , edit config/software/gitlab-rails.rb to flip your custom login fixer and git repository from step 1 and run the instruction command to build the package.

You can see what I changed here .

+1
source

Source: https://habr.com/ru/post/1205317/


All Articles