Skip to content

Commit

Permalink
Merge pull request #265 from bgehman/patch-1
Browse files Browse the repository at this point in the history
fix: nginx_with_vouch needs absolute URI redirect
  • Loading branch information
bnfinet authored May 15, 2020
2 parents 2436175 + f6c8712 commit 9dde894
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 login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
return 302 $scheme://$http_host/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 9dde894

Please sign in to comment.