User Tools

Site Tools


gitlab_nginx_additional

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
gitlab_nginx_additional [2021/12/06 20:40] admingitlab_nginx_additional [2021/12/06 21:09] admin
Line 1: Line 1:
 ====== Gitlab NGINX custom/additional config ====== ====== Gitlab NGINX custom/additional config ======
  
 +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 ===== ===== Gitlab config =====
Line 31: Line 34:
         index index.html index.htm;         index index.html index.htm;
  
-        server_name example.com;+        server_name example.com www.example.com;
  
         location / {         location / {
Line 49: Line 52:
         index index.html index.htm;         index index.html index.htm;
  
-        server_name example.com;+        server_name example.com www.example.com;
  
         # Refer to Gitlabs letsencrypt cert here.         # Refer to Gitlabs letsencrypt cert here.
gitlab_nginx_additional.txt · Last modified: 2021/12/06 21:15 by admin