33 lines
660 B
Markdown
33 lines
660 B
Markdown
# Gitlab configuration
|
|
|
|
## Gitlab IP or DNS address
|
|
|
|
edit .env file and define external url IP or DNS, it should solve problems with issue routing, try like that (for example):
|
|
|
|
```bash
|
|
GITLAB_IP_OR_DNS="http://192.168.1.103"
|
|
```
|
|
|
|
instead:
|
|
|
|
```bash
|
|
GITLAB_IP_OR_DNS="http://0.0.0.0"
|
|
```
|
|
|
|
## SSH config
|
|
|
|
Add these lines into ~/.ssh/config file (If you want push / pull from remote you must define machine IP instead 0.0.0.0):
|
|
|
|
```bash
|
|
Host gitlab
|
|
HostName 192.168.1.103
|
|
PreferredAuthentications publickey
|
|
IdentityFile ~/.ssh/git_accesses
|
|
Port 2222
|
|
```
|
|
|
|
And you can use gitlab like that:
|
|
|
|
```bash
|
|
git clone git@gitlab:devops-things/docker_images.git
|
|
``` |