{"id":18888647,"url":"https://github.com/beevelop/docker-nginx-basic-auth","last_synced_at":"2025-09-06T18:48:05.042Z","repository":{"id":37743091,"uuid":"61931298","full_name":"beevelop/docker-nginx-basic-auth","owner":"beevelop","description":":closed_lock_with_key: Simple Docker image for basic authentication","archived":false,"fork":false,"pushed_at":"2023-10-18T21:53:28.000Z","size":26,"stargazers_count":152,"open_issues_count":8,"forks_count":97,"subscribers_count":6,"default_branch":"latest","last_synced_at":"2025-04-02T11:54:43.910Z","etag":null,"topics":["authentication","container-image","containerization","docker","docker-image","nginx"],"latest_commit_sha":null,"homepage":"https://beevelop.com","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beevelop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-25T07:05:11.000Z","updated_at":"2025-03-19T15:10:22.000Z","dependencies_parsed_at":"2023-02-02T07:00:46.976Z","dependency_job_id":"ab34af90-7bc1-4854-8f63-705ca30ac30c","html_url":"https://github.com/beevelop/docker-nginx-basic-auth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fdocker-nginx-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fdocker-nginx-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fdocker-nginx-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevelop%2Fdocker-nginx-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beevelop","download_url":"https://codeload.github.com/beevelop/docker-nginx-basic-auth/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075622,"owners_count":21043625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","container-image","containerization","docker","docker-image","nginx"],"created_at":"2024-11-08T07:45:23.735Z","updated_at":"2025-09-06T18:48:05.024Z","avatar_url":"https://github.com/beevelop.png","language":"Dockerfile","readme":"![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-nginx-basic-auth/docker.yml?style=for-the-badge)\n![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/nginx-basic-auth.svg?style=for-the-badge)\n![Docker Stars](https://img.shields.io/docker/stars/beevelop/nginx-basic-auth?style=for-the-badge)\n![Docker Image Size (tag)](https://img.shields.io/docker/image-size/beevelop/nginx-basic-auth/latest?style=for-the-badge)\n![License](https://img.shields.io/github/license/beevelop/docker-nginx-basic-auth?style=for-the-badge)\n[![GitHub release](https://img.shields.io/github/release/beevelop/docker-nginx-basic-auth.svg?style=for-the-badge)](https://github.com/beevelop/docker-nginx-basic-auth/releases)\n![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-nginx-basic-auth?style=for-the-badge)\n![CalVer](https://img.shields.io/badge/CalVer-YYYY.MM.MICRO-22bfda.svg?style=for-the-badge)\n[![Beevelop](https://img.shields.io/badge/-%20Made%20with%20%F0%9F%8D%AF%20by%20%F0%9F%90%9Dvelop-blue.svg?style=for-the-badge)](https://beevelop.com)\n\n# Docker Nginx Basic Auth - Simple Authentication Proxy\n\n\u003e Lightweight nginx reverse proxy with HTTP basic authentication for securing Docker containers and web applications.\n\n## Quickstart\n\n```bash\ndocker run -d --name web dockercloud/hello-world\ndocker run -d -p 80:80 --link web:web --name auth beevelop/nginx-basic-auth\n```\n\nTry accessing and logging in with username `foo` and password `bar`.\n\n## Advanced\n\n```bash\ndocker run -d \\\n           -e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' \\\n           -e FORWARD_PORT=1337 \\\n           --link web:web -p 8080:80 \\\n           --name auth \\\n           beevelop/nginx-basic-auth\n```\n\n\u003e Use single quotes to prevent unwanted interpretation of `$` signs!\n\n## Configuration\n\n- `HTPASSWD` (default: `foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.`): Will be written to the .htpasswd file on launch (non-persistent)\n- `FORWARD_PORT` (default: `80`): Port of the **source** container that should be forwarded\n- `FORWARD_HOST` (default: `web`): Hostname of the **source** container that should be forwarded\n  \u003e The container does not need any volumes to be mounted! Nonetheless you will find all interesting files at `/etc/nginx/*`.\n\n## Multiple Users\n\nMultiple Users are possible by separating the users by newline. To pass the newlines properly you need to use Shell Quoting (like `$'foo\\nbar'`):\n\n```\ndocker run -d --link web:web --name auth \\\n           -e HTPASSWD=$'foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.\\ntest:$apr1$LKkW8P4Y$P1X/r2YyaexhVL1LzZAQm.' \\\n           beevelop/nginx-basic-auth\n```\n\nresults in 2 users (`foo:bar` and `test:test`).\n\n## Troubleshooting\n\n**Error: `nginx: [emerg] host not found in upstream \"web\"`**\n- Ensure you link the container as `web` using `--link foobar:web`\n\n## Limitations\n\n- SSL/HTTPS is not currently supported\n- For SSL requirements, consider using `jwilder/nginx-proxy` as a central gateway with `VIRTUAL_HOST` environment variable\n\n---\n\n# All Docker Images\n\n| Badge | Pulls | Build Status | Release Date | Release |\n| --- | --- | --- | --- | --- |\n| [![base](https://img.shields.io/badge/beevelop%2Fbase-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-base) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/base.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-base/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-base?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-base.svg?style=flat-square) |\n| [![java](https://img.shields.io/badge/beevelop%2Fjava-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-java) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/java.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-java/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-java?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-java.svg?style=flat-square) |\n| [![android](https://img.shields.io/badge/beevelop%2Fandroid-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-android) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/android.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-android/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-android?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-android.svg?style=flat-square) |\n| [![android-nodejs](https://img.shields.io/badge/beevelop%2Fandroid_nodejs-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-android-nodejs) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/android-nodejs.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-android-nodejs/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-android-nodejs?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-android-nodejs.svg?style=flat-square) |\n| [![cordova](https://img.shields.io/badge/beevelop%2Fcordova-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-cordova) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/cordova.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-cordova/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-cordova?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-cordova.svg?style=flat-square) |\n| [![ionic](https://img.shields.io/badge/beevelop%2Fionic-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-ionic) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/ionic.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-ionic/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-ionic?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-ionic.svg?style=flat-square) |\n| [![nginx-basic-auth](https://img.shields.io/badge/beevelop%2Fnginx_basic_auth-grey?style=flat-square\u0026logo=github)](https://github.com/beevelop/docker-nginx-basic-auth) | ![Docker Pulls](https://img.shields.io/docker/pulls/beevelop/nginx-basic-auth.svg?style=flat-square) | ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/beevelop/docker-nginx-basic-auth/docker.yml?style=flat-square) | ![GitHub Release Date](https://img.shields.io/github/release-date/beevelop/docker-nginx-basic-auth?style=flat-square) | ![GitHub release](https://img.shields.io/github/release/beevelop/docker-nginx-basic-auth.svg?style=flat-square) |\n\n---\n\n![Beevelop's Docker Image Hierarchy](https://gist.githubusercontent.com/beevelop/b0cddab7209a683c77560d06ff00bc8e/raw/15429ee1d02e2c4dc019b760ca8c7ceff5911b82/hierarchy.png)\n\n### Use tags where possible, because\n\n![One does not simply use latest](https://i.imgflip.com/1fgwxr.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevelop%2Fdocker-nginx-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeevelop%2Fdocker-nginx-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevelop%2Fdocker-nginx-basic-auth/lists"}