Skip to content
프로젝트

beevelop/docker-nginx-basic-auth

GitHub에서 보기

소개

:closed_lock_with_key: Simple Docker image for basic authentication

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
기록 수집 중
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Docker Image CI Docker Pulls GitHub release

Nginx Basic Auth proxy

Protect an HTTP service behind nginx with HTTP Basic authentication. This image uses the full nginx 1.31.10 Alpine base and listens on container port 80.

Quickstart

Run the proxy and an example upstream on the same Docker network.

docker network create nginx-auth-demo
docker run -d --network nginx-auth-demo --name web nginx:alpine
docker run -d --network nginx-auth-demo --name auth \
  -p 127.0.0.1:8080:80 beevelop/nginx-basic-auth
curl -u foo:bar http://127.0.0.1:8080/

The example credentials are foo and bar. Supply your own password records with HTPASSWD when deploying the proxy. The existing Compose and Swarm example can also run the demo.

Configuration

Variable Default Description
HTPASSWD foo / bar Inline htpasswd records separated by newlines. Single-quote literal records to preserve dollar signs in hashes.
FORWARD_HOST web Upstream address reachable from the container.
FORWARD_PORT 80 Upstream HTTP port.

For a custom login, create an htpasswd file with a tool such as htpasswd -cB users.htpasswd alice, then pass its contents as -e HTPASSWD="$(cat users.htpasswd)" when creating the container. One record per line enables multiple users. Compose YAML requires literal dollar signs in inline hashes to be escaped as $$.

The proxy forwards the client's Authorization header to the upstream after successful authentication. The launcher renders the templates from /opt into /etc/nginx on startup.

Build and test

docker build -t nginx-basic-auth:local .
bash .github/scripts/smoke.sh nginx-basic-auth:local

Pull requests exercise the existing proxy contract and build all seven supported platforms. Scheduled builds refresh latest and nightly daily at 10:00 UTC. Branch pushes, version tags, and manual runs can publish as before. Use a release tag or digest when you need to pin a deployment.


All Docker images

Badge Docker Hub Build Status Published Release / Tag License
beevelop/base beevelop/base Docker Hub pulls
beevelop/base Docker Hub stars
beevelop/base latest image size
beevelop/base build status beevelop/base GitHub release date beevelop/base latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/base license
beevelop/java beevelop/java Docker Hub pulls
beevelop/java Docker Hub stars
beevelop/java latest image size
beevelop/java build status beevelop/java GitHub release date beevelop/java latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/java license
beevelop/android beevelop/android Docker Hub pulls
beevelop/android Docker Hub stars
beevelop/android latest image size
beevelop/android build status beevelop/android GitHub release date beevelop/android latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/android license
beevelop/android-nodejs beevelop/android-nodejs Docker Hub pulls
beevelop/android-nodejs Docker Hub stars
beevelop/android-nodejs latest image size
beevelop/android-nodejs build status beevelop/android-nodejs GitHub release date beevelop/android-nodejs latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/android-nodejs license
beevelop/cordova beevelop/cordova Docker Hub pulls
beevelop/cordova Docker Hub stars
beevelop/cordova latest image size
beevelop/cordova build status beevelop/cordova GitHub release date beevelop/cordova latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/cordova license
beevelop/ionic beevelop/ionic Docker Hub pulls
beevelop/ionic Docker Hub stars
beevelop/ionic latest image size
beevelop/ionic build status beevelop/ionic GitHub release date beevelop/ionic latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/ionic license
beevelop/nginx-basic-auth beevelop/nginx-basic-auth Docker Hub pulls
beevelop/nginx-basic-auth Docker Hub stars
beevelop/nginx-basic-auth latest image size
beevelop/nginx-basic-auth build status beevelop/nginx-basic-auth GitHub release date beevelop/nginx-basic-auth latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/nginx-basic-auth license
beevelop/claude beevelop/claude Docker Hub pulls
beevelop/claude Docker Hub stars
beevelop/claude latest image size
beevelop/claude build status beevelop/claude last pushed to Docker Hub beevelop/claude latest Docker Hub tag
CalVer YYYY.MM.MICRO
beevelop/claude license
beevelop/nodejs beevelop/nodejs Docker Hub pulls
beevelop/nodejs Docker Hub stars
beevelop/nodejs latest image size
beevelop/nodejs build status beevelop/nodejs GitHub release date beevelop/nodejs latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/nodejs license
beevelop/nodejs-python beevelop/nodejs-python Docker Hub pulls
beevelop/nodejs-python Docker Hub stars
beevelop/nodejs-python latest image size
beevelop/nodejs-python build status beevelop/nodejs-python GitHub release date beevelop/nodejs-python latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/nodejs-python license
beevelop/uniqush beevelop/uniqush Docker Hub pulls
beevelop/uniqush Docker Hub stars
beevelop/uniqush latest image size
beevelop/uniqush build status beevelop/uniqush GitHub release date beevelop/uniqush latest GitHub release
CalVer YYYY.MM.MICRO
beevelop/uniqush license
beevelop/shields beevelop/shields Docker Hub pulls
beevelop/shields Docker Hub stars
beevelop/shields latest image size
beevelop/shields has no GitHub Actions workflow beevelop/shields last pushed to Docker Hub beevelop/shields latest Docker Hub tag beevelop/shields license

Use tags where possible, because

One does not simply use latest

관련 프로젝트 살펴보기

불러오는 중…