diff --git a/ansible/roles/stack-proxy/templates/proxy-default.conf b/ansible/roles/stack-proxy/templates/proxy-default.conf index 188c3d3d0f1eaf23e7623a7cebc1318e0dbcb72d..c489c283da8f7a323d7ad53c5c164a02a5547027 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/ {