A simple nginx proxy that enables basic auth
688
This is a simple basic auth proxy running inside of a docker container. It requires a TARGET env var that serves specifying the target host as well as a htpasswd formatted file, the path to the file can be specified via BASIC_AUTH_FILE env var (defaults to /etc/nginx/basic_auth).
This image is available at docker hub as apinnecke/basic-auth-proxy
version: "2"
services:
nginx:
image: apinnecke/basic-auth-proxy
build: ./docker-basic-auth-proxy
volumes:
- ./htpasswd:/htpasswd
ports:
- "8080:80"
environment:
- TARGET=www.google.de
- BASIC_AUTH_FILE=/htpasswd
Content type
Image
Digest
Size
16 MB
Last updated
over 9 years ago
docker pull apinnecke/basic-auth-proxy