beevelop / Docker Nginx Basic Auth
Licence: mit
🔐 Simple Docker image for basic authentication
Stars: ✭ 111
Projects that are alternatives of or similar to Docker Nginx Basic Auth
Nano Nginx
Nano container with nginx preconfigured as reverse proxy
Stars: ✭ 15 (-86.49%)
Mutual labels: docker-image, nginx
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-37.84%)
Mutual labels: docker-image, nginx
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-66.67%)
Mutual labels: docker-image, nginx
Janus Webrtc Gateway Docker
Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
Stars: ✭ 582 (+424.32%)
Mutual labels: docker-image, nginx
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (-18.02%)
Mutual labels: docker-image, nginx
Authelia
The Single Sign-On Multi-Factor portal for web apps
Stars: ✭ 11,094 (+9894.59%)
Mutual labels: authentication, nginx
Flask Restful Authentication
An example for RESTful authentication using nginx, uWSGI, Flask, MongoDB and JSON Web Token(JWT).
Stars: ✭ 63 (-43.24%)
Mutual labels: authentication, nginx
Micro Auth
A microservice that makes adding authentication with Google and Github to your application easy.
Stars: ✭ 466 (+319.82%)
Mutual labels: authentication, nginx
Docker Alpine Php Fpm
Docker image for php-fpm based on alpine linux that makes it small
Stars: ✭ 90 (-18.92%)
Mutual labels: docker-image, nginx
Vouch Proxy
an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
Stars: ✭ 1,239 (+1016.22%)
Mutual labels: authentication, nginx
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (+417.12%)
Mutual labels: docker-image, nginx
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (-9.01%)
Mutual labels: docker-image, nginx
Nginx Rtmp Docker
Docker image with Nginx using the nginx-rtmp-module module for live multimedia (video) streaming.
Stars: ✭ 506 (+355.86%)
Mutual labels: docker-image, nginx
Nginx Auth Proxy
Authentication for multiple services using nginx
Stars: ✭ 22 (-80.18%)
Mutual labels: authentication, nginx
Uwsgi Nginx Docker
Docker image with uWSGI and Nginx for applications in Python 3.5 and above and Python 2.7 (as Flask) in a single container. Optionally with Alpine Linux.
Stars: ✭ 466 (+319.82%)
Mutual labels: docker-image, nginx
Nginx omniauth adapter
Use omniauth for nginx auth_request
Stars: ✭ 63 (-43.24%)
Mutual labels: authentication, nginx
External Auth Server
easy auth for reverse proxies
Stars: ✭ 189 (+70.27%)
Mutual labels: authentication, nginx
Feathers Vue
A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
Stars: ✭ 195 (+75.68%)
Mutual labels: authentication, nginx
Dockerfile
📦 Dockerfiles from WebDevOps for PHP, Apache and Nginx (with PHP5 and PHP7)
Stars: ✭ 1,169 (+953.15%)
Mutual labels: docker-image, nginx
Ecs Nginx Proxy
Reverse proxy for AWS ECS. Lets you address your docker containers by sub domain.
Stars: ✭ 93 (-16.22%)
Mutual labels: docker-image, nginx
nginx-basic-auth
Simple Docker image to provide basic authentication for a single other container.
Quickstart
docker run -d --name web dockercloud/hello-world
docker run -d -p 80:80 --link web:web --name auth beevelop/nginx-basic-auth
Try accessing and logging in with username foo
and password bar
.
Advanced
docker run -d \
-e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' \
-e FORWARD_PORT=1337 \
--link web:web -p 8080:80 \
--name auth \
beevelop/nginx-basic-auth
Use single quotes to prevent unwanted interpretation of
$
signs!
Configuration
-
HTPASSWD
(default:foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.
): Will be written to the .htpasswd file on launch (non-persistent) -
FORWARD_PORT
(default:80
): Port of the source container that should be forwarded -
FORWARD_HOST
(default:web
): Hostname of the source container that should be forwardedThe container does not need any volumes to be mounted! Nonetheless you will find all interesting files at
/etc/nginx/*
.
Multiple Users
Multiple Users are possible by separating the users by newline. To pass the newlines properly you need to use Shell Quoting (like $'foo\nbar'
):
docker run -d --link web:web --name auth \
-e HTPASSWD=$'foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.\ntest:$apr1$LKkW8P4Y$P1X/r2YyaexhVL1LzZAQm.' \
beevelop/nginx-basic-auth
results in 2 users (foo:bar
and test:test
).
Troubleshooting
nginx: [emerg] host not found in upstream "web" in /etc/nginx/conf.d/auth.conf:80
- You need to link the container as
web
(--link foobar:web
)
- SSL is unsupported ATM, but might be available in the near future. For now it might be a suitable solution to use another reverse proxy (e.g.
jwilder/nginx-proxy
) that acts as a central gateway. You just need to configure theVIRTUAL_HOST
env and disable port forwarding.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].