pomerium/examples/nginx/auth.conf
bobby 1a9ac2fef5
dev: add remote container debug configs (#1459)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2020-09-28 09:55:17 -07:00

11 lines
407 B
Text

# Send auth check to /authorize location.
auth_request /authorize;
auth_request_set $target_url $scheme://$http_host$request_uri;
# Set cookies we get back from the auth check
auth_request_set $saved_set_cookie $upstream_http_set_cookie;
add_header Set-Cookie $saved_set_cookie;
# If we get a 401, respond with a named location
error_page 401 =302 https://fwdauth.localhost.pomerium.io/?uri=$target_url;