Skip to content

Enabling oauth2-proxy authentication via auth_request directive fails due to proxy_pass before include directive in server.location blocks #2486

Answered by SchoNie
davidparks21 asked this question in Q&A
Discussion options

You must be logged in to vote

I do not have experience with ngx_http_auth_request_module so maybe I am wrong but I read in the docs: Context: http, server, location
So would it be an idea to include it in the server directive instead of the location of your whoami vhost? That comes before location with the proxy_pass.
In the template that is: Line 872

You can do that per virtual host or as default

Are you getting any output from nginx? If something is wrong with the generated config it should alert on the console.
Try to start the container not detached but in foreground. Or fetch the logs sudo docker logs nginx-proxy

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davidparks21
Comment options

Answer selected by davidparks21
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy