software:gitlab
Table of Contents
Gitlab
Tips
Install with different http and ssh port
If installed on your host
- /etc/gitlab/gitlab.rb
external_url 'http://1.1.1.1:11180' gitlab_rails['gitlab_shell_ssh_port'] = 11122
If installed on docker
- Adjust ENV variable GITLAB_OMNIBUS_CONFIG adding the following options:
"external_url 'https://gitlab.example.com' ; gitlab_rails['gitlab_shell_ssh_port'] = 10022"
Use external HTTPS (i.e.: nginx reverse proxy)
If installed on docker
- Adjust ENV variable GITLAB_OMNIBUS_CONFIG adding the following options:
"external_url 'https://gitlab.example.com' ; letsencrypt['disable'] ; nginx['listen_port'] = 80 ; nginx['listen_https']=false"
- Adjust your gitlab-runner config (/etc/gitlab-runner/config.toml) with the following options:
[[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"]
software/gitlab.txt · Last modified: 2022/05/08 07:53 by Michele Porelli