User Tools

Site Tools


software:gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:gitlab [2015/05/20 17:29] – created Michele Porellisoftware:gitlab [2022/05/08 07:53] (current) Michele Porelli
Line 2: Line 2:
 ===== Tips ===== ===== Tips =====
 ==== Install with different http and ssh port ==== ==== Install with different http and ssh port ====
 +=== If installed on your host ===
   * /etc/gitlab/gitlab.rb<code>external_url 'http://1.1.1.1:11180'   * /etc/gitlab/gitlab.rb<code>external_url 'http://1.1.1.1:11180'
 gitlab_rails['gitlab_shell_ssh_port'] = 11122</code> gitlab_rails['gitlab_shell_ssh_port'] = 11122</code>
 +=== If installed on docker ===
 +  * Adjust ENV variable GITLAB_OMNIBUS_CONFIG adding the following options:<code>"external_url 'https://gitlab.example.com' ; gitlab_rails['gitlab_shell_ssh_port'] = 10022"</code>
 +
 +==== Use external HTTPS (i.e.: nginx reverse proxy) ====
 +=== If installed on docker ===
 +  * Adjust ENV variable GITLAB_OMNIBUS_CONFIG adding the following options:<code>"external_url 'https://gitlab.example.com' ; letsencrypt['disable'] ; nginx['listen_port'] = 80 ;  nginx['listen_https']=false"</code>
 +  * Adjust your gitlab-runner config (/etc/gitlab-runner/config.toml) with the following options:<code>[[runners]]
 +  url = "http://<YOUR_GITLAB_CONTAINER_NAME>/"
 +  clone_url = "https://gitlab.example.com/"
 +  [runners.docker]
 +    image = "docker:stable"
 +    volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]</code>
software/gitlab.1432135760.txt · Last modified: 2015/05/20 17:29 by Michele Porelli