CODEX

Adding Basic Authentication with Nginx as a reverse proxy

In this article, we are going to set up an Nginx reverse proxy that will add basic authentication to an existing application.

Big picture

We are running a basic web application or service that is missing authentication. We would like to add a simple authentication layer, in our case basic authentication, using a reverse proxy in front of that application.