Commit 329a54420aa428b15feaf3851c12dbdb1ce7abc7

Authored by Thiago Ribeiro
1 parent b21f0bbf

Set host header in nginx conf of gitlab.

See more in
https://beta.softwarepublico.gov.br/gitlab/softwarepublico/colab/issues/42

Signed-off-by: Thiago Ribeiro <thiagitosouza@hotmail.com>
Signed-off-by: Lucas Kanashiro <kanashiro.duart@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
cookbooks/gitlab/templates/nginx.conf.erb
... ... @@ -24,7 +24,7 @@ server {
24 24 proxy_read_timeout 90;
25 25 proxy_connect_timeout 90;
26 26 proxy_redirect off;
27   - proxy_set_header Host $host:$server_port;
  27 + proxy_set_header Host <%= node['config']['external_hostname'] %>;
28 28 proxy_set_header X-Real-IP $remote_addr;
29 29 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30 30 }
... ...