GitLab configuration

14,851

By default, what you see in the config/gitlab.yml is:

  ## GitLab settings
  gitlab:
    ## Web server settings
    host: localhost
    port: 80
    https: false

That allows you to test Gitlab locally.

If you replace:

host: localhost

with:

host: ip.address (192.168.x.x)
#
host: fqn (your fully qualified name)

Then you will be able to test / access GitLab from another computer.

So gitlab.example.com is an example of such a fully qualified name, and should be changed by your own.

As explained here, check what host hostname returns.

Share:
14,851
Michel Lecomte
Author by

Michel Lecomte

Updated on July 25, 2022

Comments

  • Michel Lecomte
    Michel Lecomte almost 2 years

    I try to install Gitlab 5.2 on OS-X Server 10.8.5. I follow the procedure document from : "http://thoughtpointers.net/2013/05/23/installing-gitlab-v52-on-os-x/".

    In the section of the document titled "Configure GitLab" they ask to edit the file "gitlab.yml" and change "gitlab.example.com" with the "fully qualified domain name" of your host serving Gitlab.

    I dont understand what I need to change..

    1. Do I need to change "host: gitlab.example.com" with "localhost" ? or with "server.local => what I get when typing "hostname") ?

    2. What is "gitlab.example.com" ? Something to download and install on my computer (so where?)? What replace it ?

    I think when I type the address on my browser :

        "http://fully qualified domain name"
    

    I will receive a page, from where comes that page (is it an index.html/php?) - where is the folder of that page/project...

    Thanks for the assistance.
  • Michel Lecomte
    Michel Lecomte over 10 years
    Thank for the answer.. Can you tell me also in the file "config.yml" - "gitlab_url" if I need to place my IP or fqdn ? Thk.
  • william.eyidi
    william.eyidi almost 7 years
    as an addition to this the config/gitlab.yml can be found using the command locate gitlab.yml