Skip to content

nefarius/docker-nginx-proxy-basic-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nginx-proxy-basic-auth

A docker image to use nginx as a reverse proxy with basic auth. Usage in a docker-compose file :

nginx:
  image: euranova/nginx-proxy-basic-auth:latest
  volumes:
  # a htpasswd file should be provided
  - ./htpasswd:/htpasswd
  # a custom nginx.conf can be used if needed
  # - ./nginx.conf:/nginx.conf
  links:
  - application-server
  environment:
    FORWARD_HOST: application-server
    # the port of the application server
    FORWARD_PORT: 8080
    # the port nginx will listen on
    PUBLIC_PORT: 80
    # what nginx will use as server name
    PUBLIC_SERVER_NAME: "my-server-name"
  ports:
  - 80:80

About

A docker image to use nginx as a reverse proxy with basic auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 70.9%
  • Shell 29.1%