Sign inSign up

apinnecke/basic-auth-proxy

By apinnecke

•Updated over 9 years ago

A simple nginx proxy that enables basic auth

Image
0

688

apinnecke/basic-auth-proxy repository overview

⁠docker-basic-auth-proxy

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

⁠Example docker-compose.yml

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

Tag summary

Content type

Image

Digest

Size

16 MB

Last updated

over 9 years ago

docker pull apinnecke/basic-auth-proxy