This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
gitlab_nginx_additional [2021/12/06 20:40] – created admin | gitlab_nginx_additional [2021/12/06 21:09] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Gitlab NGINX custom/ | ====== Gitlab NGINX custom/ | ||
+ | |||
+ | Sometimes it's handy to have a additional domain configured for the Gitlab Omnibus bundled | ||
+ | NGINX Server. Even though it is not encouraged doing so by Gitlab, it is still | ||
+ | possible. | ||
+ | |||
+ | ===== Gitlab config ===== | ||
Edit ''/ | Edit ''/ | ||
Line 16: | Line 22: | ||
</ | </ | ||
+ | ===== Additional NGINX config ===== | ||
Create folder ''/ | Create folder ''/ | ||
Line 27: | Line 34: | ||
index index.html index.htm; | index index.html index.htm; | ||
- | server_name example.com; | + | server_name |
location / { | location / { | ||
Line 45: | Line 52: | ||
index index.html index.htm; | index index.html index.htm; | ||
- | server_name example.com; | + | server_name |
# Refer to Gitlabs letsencrypt cert here. | # Refer to Gitlabs letsencrypt cert here. |