{"id":13416233,"url":"https://github.com/zchee/h2o-proxy","last_synced_at":"2025-06-12T18:07:08.854Z","repository":{"id":35506790,"uuid":"39776786","full_name":"zchee/h2o-proxy","owner":"zchee","description":"Automated H2O reverse proxy for Docker containers. An alternative jwilder/nginx-proxy.","archived":false,"fork":false,"pushed_at":"2016-07-03T05:48:20.000Z","size":27,"stargazers_count":46,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-12T18:06:28.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://registry.hub.docker.com/u/zchee/h2o-proxy/","language":null,"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/zchee.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}},"created_at":"2015-07-27T13:47:06.000Z","updated_at":"2025-02-05T21:57:32.000Z","dependencies_parsed_at":"2022-09-17T19:11:52.593Z","dependency_job_id":null,"html_url":"https://github.com/zchee/h2o-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zchee/h2o-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fh2o-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fh2o-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fh2o-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fh2o-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zchee","download_url":"https://codeload.github.com/zchee/h2o-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zchee%2Fh2o-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259518832,"owners_count":22870301,"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-07-30T21:00:55.816Z","updated_at":"2025-06-12T18:07:08.824Z","avatar_url":"https://github.com/zchee.png","language":null,"readme":"h2o-proxy\n===\nAutomated H2O reverse proxy for Docker containers. An alternative [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy).\n\nh2o-proxy sets up a container running [H2O](https://github.com/h2o/h2o) and [docker-gen](https://github.com/jwilder/docker-gen).  \ndocker-gen generates reverse proxy configs for H2O and reloads H2O use start_server when containers are started and stopped.  \n\n\nBased `FROM` image is [zchee/docker-h2o](https://github.com/zchee/docker-h2o).\n\n## Install\n\nBuilding docker container.  \n\n    $ docker build -t zchee/h2o-proxy .\n\n`h2o-proxy` now support the `docker --build-arg` new feature build flag.  \nIf you use other versions docker-gen,\n\n    $ docker build -t zchee/h2o-proxy --build-arg DOCKER_GEN_VERSION=*.*.* .\n\nAlso, Change `DOCKER_HOST` env,\n\n    $ docker build -t zchee/h2o-proxy --build-arg DOCKER_HOST=/path/to/docker.sock .\n\n\nIf you installed `docker` version is not HEAD, type this command instead of.\n\n    $ docker build -t zchee/h2o-proxy -f Dockerfile.no-buildarg .\n\n## Usage\n\nEdit host os's sysctl.conf.  \ne.g. [zchee/docker-h2o/sysctl.conf](https://github.com/zchee/docker-h2o/blob/master/sysctl.conf).\n\nTo run it:\n\n    $ docker run -d -p 80:80 --net=host -v /var/run/docker.sock:/tmp/docker.sock:ro zchee/h2o-proxy\n\nThen start any containers you want proxied with an env var `VIRTUAL_HOST=subdomain.youdomain.com`\n\n    $ docker run -e VIRTUAL_HOST=foo.bar.com  ...\n\nProvided your DNS is setup to forward foo.bar.com to the a host running h2o-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set.\n\nIf your are using `boot2docker` start `h2o-proxy` with:\n\n    $ $(boot2docker shellinit)\n    $ docker run -p 80:80 -e DOCKER_HOST -e DOCKER_CERT_PATH -e DOCKER_TLS_VERIFY -v $DOCKER_CERT_PATH:$DOCKER_CERT_PATH -it zchee/h2o-proxy\n\n## Depend packages\n- [zchee/docker-h2o](https://github.com/zchee/docker-h2o) docker image\n- [H2O](https://github.com/h2o/h2o): Version 1.5\n- [docker-gen](https://github.com/jwilder/docker-gen): Version 0.4.1\n\n## TODO\n\n- [ ] Support HTTP/2 Reverse Proxy ( Wait for the support of H2O )\n- [x] Not dependent perl and Server::Starter\n  - `start_server` use a included script in the H2O\n- `reprioritize-blocking-assets` ooptions \n","funding_links":[],"categories":["Container Operations","Reverse Proxy"],"sub_categories":["Reverse Proxy"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchee%2Fh2o-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzchee%2Fh2o-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzchee%2Fh2o-proxy/lists"}