{"id":21321222,"url":"https://github.com/lgaticaq/https-proxy-alpine","last_synced_at":"2025-08-24T09:46:05.832Z","repository":{"id":22652226,"uuid":"96945899","full_name":"lgaticaq/https-proxy-alpine","owner":"lgaticaq","description":"Use HAProxy to create a HTTPS proxy","archived":false,"fork":false,"pushed_at":"2025-07-09T22:53:13.000Z","size":81,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T08:58:23.654Z","etag":null,"topics":["alpine-linux","docker-image","haproxy","https-proxy"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lgaticaq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-07-11T23:36:51.000Z","updated_at":"2023-03-25T04:00:57.000Z","dependencies_parsed_at":"2023-01-11T21:42:57.112Z","dependency_job_id":"4b915a60-e729-4d6b-bd59-04a09a5c2831","html_url":"https://github.com/lgaticaq/https-proxy-alpine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lgaticaq/https-proxy-alpine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgaticaq%2Fhttps-proxy-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgaticaq%2Fhttps-proxy-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgaticaq%2Fhttps-proxy-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgaticaq%2Fhttps-proxy-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lgaticaq","download_url":"https://codeload.github.com/lgaticaq/https-proxy-alpine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgaticaq%2Fhttps-proxy-alpine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271838333,"owners_count":24831569,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["alpine-linux","docker-image","haproxy","https-proxy"],"created_at":"2024-11-21T19:57:21.653Z","updated_at":"2025-08-24T09:46:05.802Z","avatar_url":"https://github.com/lgaticaq.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTPS Proxy\n\n[![dockeri.co](http://dockeri.co/image/lgatica/https-proxy-alpine)](https://hub.docker.com/r/lgatica/https-proxy-alpine/)\n\n[![Build Status](https://travis-ci.org/lgaticaq/https-proxy-alpine.svg?branch=master)](https://travis-ci.org/lgaticaq/https-proxy-alpine)\n\nFork from [yajo/docker-https-proxy](https://bitbucket.org/yajo/docker-https-proxy)\n\nUse HAProxy to create a HTTPS proxy.\n\nTo understand settings in configuration files, see\n[online manual](https://cbonte.github.io/haproxy-dconv/).\n\n## Disclaimer about load balancing\n\nThis container uses HAProxy, but **it does not perform load balancing**.\nIt's just for adding an HTTPS layer to any HTTP container.\n\nHowever, feel free to fork or subclass this image to do it, or just use other\ncontainer for load balancing and link it to this one to add HTTPS to it.\n\n## Usage\n\nReplace PORT and HOST with your port and ip:\n\n```bash\ndocker run -d -p 80:80 -e PORT=8000 -e HOST=192.168.1.2 -p 443:443 lgatica/https-proxy-alpine\n```\n\nThen navigate to `https://localhost` and add security exception.\n\n### When you have a real certificate\n\nYou can supply them with environment variables:\n\n```bash\nopenssl req -x509 -sha256 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -batch -nodes\ndocker run -d -p 80:80 -e PORT=8000 -e HOST=192.168.1.2 -e KEY=\"$(cat key.pem)\" -e CERT=\"$(cat cert.pem)\" -p 443:443 lgatica/https-proxy-alpine\n```\n\nOr use a volume\n\n```bash\nmkdir certs \u0026\u0026 cd certs\nopenssl req -x509 -sha256 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -batch -nodes\ncd ..\ndocker run -d -p 80:80 -e PORT=8000 -e HOST=192.168.1.2 -v certs:/etc/ssl/private/ -p 443:443 lgatica/https-proxy-alpine\n```\n\n### When you want custom error pages\n\nThis is preconfigured to use error pages from the examples.\n\n```bash\nmkdir errors \u0026\u0026 cd errors \u0026\u0026 touch 400.http \u0026\u0026 cd ..\ndocker run -d -p 80:80 -e PORT=8000 -e HOST=192.168.1.2 -v errors:/usr/local/etc/haproxy/errors/ -p 443:443 lgatica/https-proxy-alpine\n```\n\n### Automatic redirection of HTTP\n\nThis image will redirect all HTTP traffic to HTTPS, but this is a job that\n**should** be handled by your host in production to avoid this little overhead.\n\nTo help your host know it is proxied (because it will seem to the host like\nrequests come in HTTP form), all requests will have this additional\nheader: `X-Forwarded-Proto: https`.\n\nYou can use that to make HTTPS (`https://example.com/other-page`)\nredirections, or just use relative (`../other-page`) or protocol-agnostic\n(`//example.com/other-page`) redirections and it will always work\nanywhere (this is a good practice, BTW).\n\nIf you don't want this forced redirection (to maintain both HTTP and HTTPS\nversions of your site), just expose port 80 from your host and port 443\nfrom the proxy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgaticaq%2Fhttps-proxy-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgaticaq%2Fhttps-proxy-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgaticaq%2Fhttps-proxy-alpine/lists"}