{"id":28241857,"url":"https://github.com/significa/nginx-with-basic-auth-docker","last_synced_at":"2025-06-11T09:31:50.433Z","repository":{"id":256923813,"uuid":"856835385","full_name":"significa/nginx-with-basic-auth-docker","owner":"significa","description":"Simple, small, and multi-arch Docker image of Nginx with basic authentication","archived":false,"fork":false,"pushed_at":"2024-09-13T12:00:00.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T13:46:52.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/significa.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":"2024-09-13T09:46:41.000Z","updated_at":"2024-09-16T11:01:54.000Z","dependencies_parsed_at":"2024-09-13T23:34:43.633Z","dependency_job_id":null,"html_url":"https://github.com/significa/nginx-with-basic-auth-docker","commit_stats":null,"previous_names":["significa/nginx-with-basic-auth-docker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fnginx-with-basic-auth-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fnginx-with-basic-auth-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fnginx-with-basic-auth-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fnginx-with-basic-auth-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/significa","download_url":"https://codeload.github.com/significa/nginx-with-basic-auth-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fnginx-with-basic-auth-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259238870,"owners_count":22826811,"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":[],"created_at":"2025-05-19T05:08:56.889Z","updated_at":"2025-06-11T09:31:50.414Z","avatar_url":"https://github.com/significa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx with Basic Auth Docker Image\n\nThis is a simple, small, and multi-arch Docker image of Nginx with basic authentication enabled.\n\n**Example**\n\n```sh\ndocker run \\\n    -p 8080:80 \\\n    -e BASIC_AUTH_USERNAME=your_username \\\n    -e BASIC_AUTH_PASSWORD=your_password \\\n    -v ./your/www/dir:/usr/share/nginx/html \\\n    ghcr.io/significa/nginx-with-basic-auth\n```\n\nImage name/url: `ghcr.io/significa/nginx-with-basic-auth`\n\n## Usage\n\nThis image can be configured using environment variables during runtime. You do not need to prepare\nhtpasswd encoded strings beforehand. Simply pass the environment variables in plaintext.\n\n\n**Required Environment Variables**\n\n* `BASIC_AUTH_USERNAME`: The username for basic authentication.\n* `BASIC_AUTH_PASSWORD`: The password for basic authentication.\n\n**Optional Environment Variables**\n\nThese environment variables are optional and are used to enable `/healthz` and `/healthz/version`.\nThis enables easy setup of health checks without dependency on the hosted web files and basic auth.\nThey default to enabled (`true`) but can be set to `false` to disable them.\nThe version route consumes the `APP_VERSION` env var (that can also be set via a build argument).\n\n* `ENABLE_HEALTH_ROUTE`: Enables the `/healthz` route.\n* `ENABLE_VERSION_ROUTE`: Enables the `/version/version` route.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignifica%2Fnginx-with-basic-auth-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignifica%2Fnginx-with-basic-auth-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignifica%2Fnginx-with-basic-auth-docker/lists"}