A simple authenticated front end for internal services.
Proxies a number of back-end http servers through SSL with a single password and nice login landing page for the unauthenticated. This is for internal servers for small companies without SSO.
How to use
- Make sure all services are only accessible from the proxy, probably via docker routing.
- Generate an SLL cert and key with:
mkdir ssl cd ssl openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost"
docker run -e PASSWORD=password -e SERVERS='[["server1", 8081, "localhost:9165"]]' -p 8081:8081 -v `pwd`/ssl:/etc/ssl:ro andrewbaxter/basic-auth-landing
SERVERSis a json-encoded array of 3-tuple arrays of the service name, the exposed port, and the internal address. Each exposed port must also be added with
Docker Pull Command