SOLVED Gitlab@FreeNAS-11.2: How can I configure external_url

ysf

Cadet
Joined
Feb 11, 2019
Messages
4
Hi,

i am using from Freenas 11.2 the prepared Gitlab iocage - it is running well ! i created a new project and i would like to clone it but the domain name on the web-frontend is set to localhost instead of the Gitlab-Domain. I wont to change this!

After a small research i understand that i must set var external_url in the gitlab.rb. unfortunately i am not finding this gitlab.rb
respectively the place to put the external_url.

any idea?

thanks!
 
Last edited:

TheBird956

Cadet
Joined
Jun 14, 2018
Messages
9
Hi!

Just installed Gitlab on my server today and I had the exact same question. I just figured it out. You can find it in this path of your jail: /usr/local/etc/nginx/gitlab

However, I can't figure out how to run the command to reconfigure. It just says that the gitlab-ctl command cannot be found
 

ysf

Cadet
Joined
Feb 11, 2019
Messages
4
Hi There,

The solution is:

```
go to
Code:
>> /usr/local/www/gitlab-ce/config/gitlab.yaml


search for

Code:
  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: localhost


change this:
Code:
host: localhost ---> host: mydomain.com


Then restart gitlab
Code:
service gitlab restart

```

Enjoy ;)
 
Last edited:

donsev

Explorer
Joined
Jan 15, 2017
Messages
79
Hello,

Has anyone found a solution? I edited the gitlab.yml file and restarted the service but that does not seem to work anymore. I can also confirm that while I can edit nginx/gitlab file, I cannot run the gitlab-ctl reconfigure as per this guide.

2HMWvc8TjA.png
 
Top