I
I
Ilya2021-05-30 09:28:23
CentOS
Ilya, 2021-05-30 09:28:23

How to install GitLab on a subdomain?

Good day!

I have my own physical server running several sites (i.e. installed webserver, ispmanager, etc.).
I decided to install GitLab on a subdomain of one of the sites. I went through all the steps from the instructions, installed GitLab, specified the subdomain address in the config. Run a reconfiguration.

Question: how now to make GitLab open on the specified subdomain?
If I find instructions, then only GitLab is installed on the server alone, without "neighbors".
Where is GitLab installed in general (in what folder)?
I think many people have already solved a similar problem. Help advice, point direction.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2021-05-31
@jasper-blondin

Approximate sequence of actions (for CentOS 8).
1. Use the instruction ( https://gitlab.com/gitlab-org/omnibus-gitlab/blob/... ).
2. Reconfigure:

nano /etc/gitlab/gitlab.rb

Specify the value
nginx['enable'] = false

Specify the value
web_server['external_users'] = ['apache']

Specify the value
gitlab_rails['trusted_proxies'] = [ '#IP address#' ]

3. Run the reconfiguration:
sudo gitlab-ctl reconfigure

4. Create Nginx config ( https://gitlab.com/gitlab-org/gitlab-recipes/-/tre... ):
nano /etc/nginx/conf.d/gitlab-ssl.conf

Specify the IP address in the config. When using SSL, specify the paths to the certificate files.
5. Restart Nginx:
sudo systemctl restart nginx

A
Andrey Gavrilov, 2021-05-30
@thexaver

nginx reverse proxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question