Skip to content

Commit

Permalink
Merge pull request #263 from bgehman/patch-1
Browse files Browse the repository at this point in the history
fix: use relative URL for 302 redirect [skip ci]
  • Loading branch information
bnfinet authored May 13, 2020
2 parents b537fa5 + ba2bc9e commit 50c971f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ http {

location @error401 {
# redirect to Vouch Proxy for login
return 302 http://vouch.yourdomain.com/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
return 302 login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
# you usually *want* to redirect to Vouch running behind the same Nginx config proteced by https
# but to get started you can just forward the end user to the port that vouch is running on
}
Expand Down

0 comments on commit 50c971f

Please sign in to comment.