Replies: 1 comment
-
I think auth_request module is enabled. it returns 502 because that auth request upstream has some error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone ever needed to use the auth_request module within Nginx Proxy Manager? Can you tell me if this configuration is correct?
location / {
deny all;
}
location /api/ {
allow all;
if ($arg_auth = "") {
return 403 "Access Denied: Missing auth parameter";
}
}
location = /_oauth2_token_introspection {
internal;
proxy_method POST;
proxy_set_header Authorization "bearer SecretForOAuthServer";
proxy_set_header Content-Type "application/x-www-form-urlencoded";
proxy_set_body "token=$arg_auth &token_hint=access_token";
proxy_pass https://xxx.free.beeceptor.com;
}
In the browser, it returns a 500 error and doesn't even reach the token validation API.
checked error log files and show only this: "[error] 1467#1467: *5327 auth request unexpected status: 502 while sending to client"
Beta Was this translation helpful? Give feedback.
All reactions