From cf20200318d6e3083b2cba59eb9d459a503011ae Mon Sep 17 00:00:00 2001 From: S M Y <smy.altamash@gmail.com> Date: Wed, 17 Jul 2019 11:14:53 +0530 Subject: [PATCH] Proxy changes --- .../roles/stack-proxy/templates/proxy-default.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ansible/roles/stack-proxy/templates/proxy-default.conf b/ansible/roles/stack-proxy/templates/proxy-default.conf index 188c3d3d0..c489c283d 100644 --- a/ansible/roles/stack-proxy/templates/proxy-default.conf +++ b/ansible/roles/stack-proxy/templates/proxy-default.conf @@ -51,7 +51,16 @@ server { } location ~* ^/auth/v1/refresh/token { - proxy_pass http://player; + set $target http://player:3000; + rewrite ^/auth/(.*) /auth/$1 break; + proxy_pass $target; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } location ~* ^/auth/admin/master/console/ { -- GitLab