avoid auth_request for internal calls
May 31, 2020 06:00AM
Hi,

I have a docker-compose based system, with nginx as the application gateway.
I am also using the auth_request for the authentication mechanism.
Nginx is also used for direct files access using the "alias" with the mounted volume path.

My problem is: some of my internal services also require direct files access, but I do not want them to require the authentication...
How can I add some sort of rules or conditions in my nginx config which bypasses the auth_request based on whether the source of the request is from the docker-compose services domain vs. from the outside?
I have been looking around but failed to find a solution for this.

Any way to do this?

Thank you very much!!
Gil
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready