Results 1 to 4 of 4

Thread: Gitlab defaulting to gitlab.example.com

  1. #1
    Join Date
    Aug 2005
    Beans
    465

    Gitlab defaulting to gitlab.example.com

    Installed gitlab and must have missed a step. Some of the links default to gitlab.example.com/*

    I can correct it by manually changing the url to gitlab.localhost.com/*

    But it is annoying. How do i change it ?

    Also, installed a local smtp server (postfix) and command line has changed from old command line to ...
    Code:
    dara@server1:
    Not a big deal. but how do i get back to my previous hostname ?
    I wish my computer would do what I want it to do - not what I tell it to do.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Gitlab defaulting to gitlab.example.com

    No. localhost.com is not yours to take.
    If you use avahi, use gitlab.local
    If you don't use avahi, then you don't need the .local, but you'll need to handle name resolution on your own.
    Don't use any valid TLD, please. It will just cause issues.

  3. #3
    Join Date
    Aug 2005
    Beans
    465

    Re: Gitlab defaulting to gitlab.example.com

    sorry my bad.

    I meant how do i direct it to gitlab.localhost/mygitproject ?

    Of course, I don't own localhost.com. Where is the variable in the gitlab installation that replaces the 'example.com' with the 'localhost' setting ?
    I wish my computer would do what I want it to do - not what I tell it to do.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Gitlab defaulting to gitlab.example.com

    Using localhost is problematic because EVERY COMPUTER with a network stack thinks of itself as "localhost". Please pick some other TLD. Heck, gitlab.local would be ok. mDNS w/ avahi appends .local to every computer on your network that supports zeroconf.

    People commonly use .lan as well. .lan is the domain name. gitlab would typically be the hostname or a web-server configured virtual web servername. This is controlled by the webserver settings, usually in the sites-available/ directory.

    i've never installed gitlab. Only responded because the example.com was definitely wrong. i'm only responding now because localhost is just as wrong and highly likely to only work on the same machine. if you are already on the machine, what's the point of gitlab? Use git from the shell.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •