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?
-
Sorry for not answering your question, but that would be a nice feature. You can add it in feedback.gitlab.com– axilCommented Dec 31, 2013 at 22:06
-
1Here it is - feedback.gitlab.com/forums/176466-general/suggestions/…– Lord Loh.Commented Dec 31, 2013 at 22:15
2 Answers
Setting custom startpage for non-logged in users:
- From "Admin Area" goto the gear on the left and choose "Settings"
- Find parameter "Home page URL" and set it to
www.mygitlab.com/explore
. Optional set "After sign out path" to same url - Click save
Tested with version is 8.14.4 CE
-
Thank you! Ha ha! What a simple way to do it! And it took them three years to make it a feature. See the link in the comment to my question - I put a feedback and I was told this is an EE feature. I am hoping that GEO is moved to the CE some day :-) Commented Dec 10, 2016 at 0:44
-
6Note as of Gitlab 13.6.1, that setting is under the "Sign-in restrictions" section in Settings->General– jgawrychCommented Dec 12, 2020 at 7:00
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:
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.