0

I'm wondering how to configure nginx (running in a docker conatiner) to verify a JWT validity (passed by Authorization/Bearer or by Cookie, that's not the point) and consequently acts like a gateway.

If the JWT is invalid, or expired, the the nginx had to conenct (or better, act like a trasparent proxy) to the container "login". If not, if the JWT is valid, it had to "proxy" to the "app" container.

I saw some modules like https://github.com/TeslaGov/ngx-http-auth-jwt-module, but at the moment I'm unable to configure it correcly.

Some suggestion about that or similar solution? I'm open also at completely different solutions, for example Traefik or other.

In other words: what do you suggest to create with Docker a similar scenario?

Thank you in advance.

Hammeronthenet
  • 132
  • 2
  • 14

0 Answers0