This repo is just an example of how to use nginx with basic auth.
.
├── basic_server.py # simple python server serving a form
├── docker-compose.yml # compose with nginx and the python server
├── Makefile
├── nginx # nginx configurations
│ ├── htpasswd # > user:pwd file. see `make gen-pwd`
│ └── local.conf # > nginx configuration
└── README.md
- Generate a user and password for the basic auth:
make gen-pwd user=alice pwd=12345
-
Run both services:
make run
-
Head to localhost:8080