From ac68b02dce0fd98c120d226860ac2f2628d3e17d Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Sat, 12 Sep 2020 08:18:43 -0500 Subject: [PATCH] CLDR-13771 ansible: fix proxy so users don't all appear as 127.0.0.1 (#707) --- tools/scripts/ansible/setup-playbook.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scripts/ansible/setup-playbook.yml b/tools/scripts/ansible/setup-playbook.yml index 0a842594154..db84d5e96bf 100644 --- a/tools/scripts/ansible/setup-playbook.yml +++ b/tools/scripts/ansible/setup-playbook.yml @@ -83,6 +83,7 @@ proxy_pass http://localhost:8080/cldr-apps/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; } marker: '# {mark} ANSIBLE MANAGED BLOCK' insertafter: '^[\s]*server_name' # the LAST uncommented server block @@ -91,7 +92,7 @@ user: name: surveytool shell: /bin/bash - - name: Give acess to surveytool user + - name: Give access to surveytool user file: path: /var/lib/tomcat8/cldr/cldr-trunk owner: surveytool