{"id":20619680,"url":"https://github.com/mybuilder/nginx-proxy","last_synced_at":"2025-06-23T00:35:55.976Z","repository":{"id":42992087,"uuid":"424893613","full_name":"mybuilder/nginx-proxy","owner":"mybuilder","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-24T11:36:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-29T20:22:04.422Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mybuilder.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}},"created_at":"2021-11-05T09:31:08.000Z","updated_at":"2022-03-24T11:37:02.000Z","dependencies_parsed_at":"2022-09-09T13:50:16.655Z","dependency_job_id":null,"html_url":"https://github.com/mybuilder/nginx-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mybuilder/nginx-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fnginx-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fnginx-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fnginx-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fnginx-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybuilder","download_url":"https://codeload.github.com/mybuilder/nginx-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fnginx-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261390996,"owners_count":23151660,"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":"2024-11-16T12:12:16.243Z","updated_at":"2025-06-23T00:35:50.958Z","avatar_url":"https://github.com/mybuilder.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx Proxy\n\nThis provides an Nginx based Docker image that can be used to proxy requests to given endpoints (based on server name).\n\n## Usage\n\nThe image requires both the desired `LISTEN_PORT` of the Nginx service, and the `PROXY_HOSTS` endpoint configuration - both supplied as enviornemnt variables.\nThe configuration is supplied as a Base64-encoded JSON array conforming to the following template:\n\n```json\n[\n  {\n    \"name\": \"name-of-endpoint\",\n    \"server_name\": \"www.server-name.com\",\n    \"proxy_url\": \"https://www.proxy-url.com\",\n    \"proxy_host\": \"www.proxy-host.com\",\n    \"resolver\": \"1.1.1.1\",\n    \"timeout\": 29,\n    \"location_extra\": \"proxy_set_header x-api-key KEY;\"\n  }\n]\n```\n\n## Example\n\nBelow is an example which highlights defining a static, regex-based and catch-all endpoint proxy service.\n\nWith a configuration stored in a file entitled `config.json`.\n\n```json\n[\n  {\n    \"name\": \"google\",\n    \"server_name\": \"www.my-google-proxy.com\",\n    \"proxy_url\": \"https://www.google.com\",\n    \"proxy_host\": \"www.google.com\",\n    \"resolver\": \"1.1.1.1\",\n    \"timeout\": 29,\n    \"location_extra\": \"\"\n  },\n  {\n    \"name\": \"yahoo\",\n    \"server_name\": \"~^www\\\\.(?\u003csubdomain\u003e.+)-yahoo\\\\.com$\",\n    \"proxy_url\": \"https://$subdomain.yahoo.com\",\n    \"proxy_host\": \"$subdomain.yahoo.com\",\n    \"resolver\": \"1.1.1.1\",\n    \"timeout\": 29,\n    \"location_extra\": \"\"\n  },\n  {\n    \"name\": \"default\",\n    \"server_name\": \"_\",\n    \"proxy_url\": \"https://www.mybuilder.com\",\n    \"proxy_host\": \"www.mybuilder.com\",\n    \"resolver\": \"1.1.1.1\",\n    \"timeout\": 29,\n    \"location_extra\": \"\"\n  }\n]\n```\n\n```sh\ndocker run --rm -it \\\n  -p 80:80 \\\n  -e LISTEN_PORT=80 \\\n  -e PROXY_HOSTS=$(cat config.json | base64) \\\n    ghcr.io/mybuilder/nginx-proxy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fnginx-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybuilder%2Fnginx-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fnginx-proxy/lists"}