Unverified Commit b6e2e696 authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

Merge pull request #641 from MasterAlt/release-2.2.0

Proxy redirection for refresh auth token
parents 197e4216 cf202003
No related merge requests found
Showing with 11 additions and 1 deletion
+11 -1
......@@ -49,8 +49,18 @@ server {
location ~* ^/auth/realms/(.+)/clients-registrations/ {
return 301 {{proto}}://$host/api/auth/v1/realms/$1/clients-registrations/;
}
location ~* ^/auth/v1/refresh/token {
return 301 {{proto}}://{{ proxy_server_name }};
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/ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment