Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
b6e2e696
Unverified
Commit
b6e2e696
authored
5 years ago
by
Keshav Prasad
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #641 from MasterAlt/release-2.2.0
Proxy redirection for refresh auth token
parents
197e4216
cf202003
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-proxy/templates/proxy-default.conf
+11
-1
ansible/roles/stack-proxy/templates/proxy-default.conf
with
11 additions
and
1 deletion
+11
-1
ansible/roles/stack-proxy/templates/proxy-default.conf
+
11
−
1
View file @
b6e2e696
...
...
@@ -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
/ {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets