Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the default home page of my gitlab installation

Tags:

gitlab

By default my gitlab homepage starts www.mydomain.com/users/sign_in. I would like to change this to show 'www.mydomain.com/public' instead. How do I configure this?

like image 694
Lord Loh. Avatar asked Dec 30 '13 23:12

Lord Loh.


2 Answers

Setting custom startpage for non-logged in users:

  1. From "Admin Area" goto the gear on the left and choose "Settings"
  2. Find parameter "Home page URL" and set it to www.mygitlab.com/explore. Optional set "After sign out path" to same url
  3. Click save

Tested with version is 8.14.4 CE

like image 149
Christian L. Avatar answered Oct 15 '22 06:10

Christian L.


This answer was written while running Gitlab 6. Any instructions may be outdated.


The feature request has been declined so you have to do it on your own and change the source code.

Full tutorial here: Kovah.me DevBlog

Short HowTo:
Just open
gitlab/app/views/layouts/devise.html.haml
and change what you want.

For example you could replace %h1 GitLab with your own logo. Use the image tag for it: %img{:src => "/source/to/image.png"}

But attention! You have to use spaces to indent all elements! And make a backup before running any upgrades.

like image 20
Kevin Woblick Avatar answered Oct 15 '22 07:10

Kevin Woblick