From 330f2b5a91c03fd4600734dbc6d980c14d35fb2d Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Fri, 27 May 2022 22:33:35 -0400 Subject: [PATCH] Add X-Forwarded-For proxy header --- roles/proxy/templates/server-nginx.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/proxy/templates/server-nginx.conf.j2 b/roles/proxy/templates/server-nginx.conf.j2 index e612244..648ef00 100644 --- a/roles/proxy/templates/server-nginx.conf.j2 +++ b/roles/proxy/templates/server-nginx.conf.j2 @@ -30,6 +30,7 @@ server { location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass {{ item.proxy_pass }}; } }