Sign inSign up

x110dc/nginx-auth-proxy

By x110dc

Updated almost 11 years ago

Image
1

1.0K

x110dc/nginx-auth-proxy repository overview

This is a very simple authenticating nginx reverse proxy. As written it only supports setting a single user/password.

To build:

docker build -t proxy .

To run:

  • specify the environment either by creating a file with contents like so:
SERVER_NAME=my-server-name
UPSTREAM_PORT=1234
USER=my-user
PASSWORD=my-great-password
  • save that file somewhere (like .env). Then:
docker run --link web:upstream --detach=true --env-file=./.env --publish=80:80 --name proxy proxy
  • or by specifying the variables as part of the docker run command:
docker run --link web:upstream -e SERVER_NAME=foo -e ... --detach=true --publish=80:80 --name proxy proxy

Tag summary

Content type

Image

Digest

sha256:62009345b

Size

104.4 MB

Last updated

almost 11 years ago

docker pull x110dc/nginx-auth-proxy