From 3bc1d75d9e142ab4747a9ab5cb461f8a7ce4b1fd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 1 Sep 2020 20:12:16 +0100 Subject: [PATCH] Ensure the correct IP is detected --- ansible/roles/gitlab/files/gitlab.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gitlab/files/gitlab.rb b/ansible/roles/gitlab/files/gitlab.rb index d2ee022..37f8751 100644 --- a/ansible/roles/gitlab/files/gitlab.rb +++ b/ansible/roles/gitlab/files/gitlab.rb @@ -25,4 +25,6 @@ gitlab_rails['redis_host'] = 'redis' gitlab_rails['redis_port'] = 6379 gitlab_rails['gitlab_default_theme'] = 2 -gitlab_rails['trusted_proxies'] = ['172.17.0.1'] + +nginx['real_ip_trusted_addresses'] = ['0.0.0.0/0'] +nginx['real_ip_header'] = 'X-Forwarded-For'