{"id":22535285,"url":"https://github.com/danielwhatmuff/nginx-ssl-auth-docker","last_synced_at":"2026-02-03T15:32:12.199Z","repository":{"id":84757889,"uuid":"58167964","full_name":"danielwhatmuff/nginx-ssl-auth-docker","owner":"danielwhatmuff","description":"Docker build for nginx with basic auth and SSL termination","archived":false,"fork":false,"pushed_at":"2016-05-06T01:42:19.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-21T23:38:57.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nginx","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielwhatmuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-05-05T23:57:38.000Z","updated_at":"2019-06-17T12:59:22.000Z","dependencies_parsed_at":"2023-03-06T21:00:31.725Z","dependency_job_id":null,"html_url":"https://github.com/danielwhatmuff/nginx-ssl-auth-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielwhatmuff/nginx-ssl-auth-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fnginx-ssl-auth-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fnginx-ssl-auth-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fnginx-ssl-auth-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fnginx-ssl-auth-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwhatmuff","download_url":"https://codeload.github.com/danielwhatmuff/nginx-ssl-auth-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fnginx-ssl-auth-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:19:55.533Z","status":"ssl_error","status_checked_at":"2026-02-03T15:13:09.723Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-07T10:07:01.258Z","updated_at":"2026-02-03T15:32:12.190Z","avatar_url":"https://github.com/danielwhatmuff.png","language":"Nginx","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NGINX SSL reverse proxy to another Docker container, with basic auth\n\n## Overview\n\n- Provides SSL termination using NGINX running inside a Docker container\n- Provides basic auth, using htpassword file\n- Forward requests securely to a linked container, or to another backend\n- Logs nginx access_log messages to stdout\n\n## Usage\n- Create certificate, key and Diffie-Hellman cert\n```bash\n$ openssl dhparam -out dh.pem 2048\n$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout cert.key -out cert.crt\n```\n- Create .htpasswd file\n```\n$ htpasswd -c .htpasswd username\n```\n- Build image\n```\n$ docker build -t nginx-ssl-auth .\n```\n- Run the container you wish to proxy to\n```\n$ docker run -d --name myservice \u003cdockerimage\u003e\n```\n- Run the nginx-ssl-auth container, pass environment variables and mount certs/htpasswd/dhparam\n```\n$ docker run -d --link myservice \\\n             -e 'LINKED_CONTAINER_NAME=myservice' \\ \n             -e 'LINKED_CONTAINER_PORT=8080' \\\n             -p 80:80 \\\n             -p 443:443 \\\n             -v $(pwd)/cert.crt:/etc/nginx/cert.crt \\\n             -v $(pwd)/cert.key:/etc/nginx/cert.key \\\n             -v $(pwd)/dh.pem:/etc/nginx/dh.pem \\\n             -v $(pwd)/.htpasswd:/etc/nginx/.htpasswd \\\n             nginx-ssl-auth\n```\n- Note: The '--link myservice' must match the container name and the port must match too\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fnginx-ssl-auth-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwhatmuff%2Fnginx-ssl-auth-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fnginx-ssl-auth-docker/lists"}