Sign inSign up

euranova/nginx-proxy-basic-auth

By euranova

•Updated over 9 years ago

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

Image
0

1.4K

euranova/nginx-proxy-basic-auth repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

16 MB

Last updated

over 9 years ago

docker pull euranova/nginx-proxy-basic-auth