Skip to content

pancer/docker-nginx-static-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for nginx basic auth for static content

Run nginx in docker with basic http auth and serve static content from mounted volume

Usage example:

  • docker run -e BASIC_AUTH_USERNAME=user -e BASIC_AUTH_PASSWORD=password -p 80:80 -v /home/user/content:/var/www/html smokimk/nginx-static-basic-auth

Environment variables:

  1. BASIC_AUTH_USERNAME

  2. BASIC_AUTH_PASSWORD

  3. PORT (defaults 80)

  4. WORKER_PROCESSES (defaults auto)

  5. CLIENT_MAX_BODY_SIZE (defaults 1m)

Based on dtan4/nginx-basic-auth-proxy and carlosflorencio/docker-nginx-static-spa

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published