{"id":19007245,"url":"https://github.com/siemko/caddy2-gen","last_synced_at":"2025-06-17T03:06:33.108Z","repository":{"id":38848739,"uuid":"256225289","full_name":"Siemko/caddy2-gen","owner":"Siemko","description":"Caddy2 + docker-gen + forego","archived":false,"fork":false,"pushed_at":"2024-12-05T04:04:51.000Z","size":33,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T19:52:16.588Z","etag":null,"topics":["caddy","caddy-server","caddy2","caddyserver","docker-compose","docker-compose-template","docker-gen","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/Siemko.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":"2020-04-16T13:38:13.000Z","updated_at":"2024-08-23T10:25:57.000Z","dependencies_parsed_at":"2024-06-11T16:37:36.895Z","dependency_job_id":"8a4db119-d30b-426e-9659-5426d8226ff7","html_url":"https://github.com/Siemko/caddy2-gen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Siemko/caddy2-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siemko%2Fcaddy2-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siemko%2Fcaddy2-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siemko%2Fcaddy2-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siemko%2Fcaddy2-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siemko","download_url":"https://codeload.github.com/Siemko/caddy2-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siemko%2Fcaddy2-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260281570,"owners_count":22985629,"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":["caddy","caddy-server","caddy2","caddyserver","docker-compose","docker-compose-template","docker-gen","reverse-proxy"],"created_at":"2024-11-08T18:36:46.902Z","updated_at":"2025-06-17T03:06:33.064Z","avatar_url":"https://github.com/Siemko.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caddy 2 Gen\n\nHeavily inspired by wemake-services' awesome [caddy-gen](https://github.com/wemake-services/caddy-gen).\n\n[Docker Hub](https://hub.docker.com/repository/docker/siemko8/caddy2-gen)\n\n---\n\n## Configuration\n\nUse `labels`.\n\nThe main idea is simple. Every labeled service exposes a `virtual.host` to be handled. Then, every container represents a single `reverse_proxy`'s `to` option to serve requests.\n\nOptions to configure:\n\n- `virtual.host` domain name, don't pass `http://` or `https://`, you can separate them with space,\n- `virtual.alias` domain alias, e.q. `www` prefix,\n- `virtual.port` port exposed by container, e.g. `3000` for React apps in development,\n- `virtual.tls-email` the email address to use for the ACME account managing the site's certificates,\n- `virtual.host.directives` set custom Caddyfile directives for the host. These will be inlined into the site block.\n- `virtual.host.import` include Caddyfile directives for the host from a file on the container's filesystem. See Caddy import.\n- `virtual.proxy.matcher` have the reverse proxy only match certain paths.\n- `virtual.proxy.lb_policy` specify load balancer policy, defaults to round_robin.\n- `virtual.proxy.directives` include any reverse_proxy directives. These will be inlined into the reverse proxy block.\n- `virtual.proxy.import` include any reverse_proxy directives from a file on the container's filesystem. See Caddy import.\n- `virtual.auth.username` and\n- `virtual.auth.password` together provide HTTP basic authentication.\n\nPassword should be a string `base64` encoded from `bcrypt` hash. You can use https://bcrypt-generator.com/ with default config and https://www.base64encode.org/.\n\n## Backing up certificates\n\nTo backup certificates make a volume:\n\n`./caddy-info:/data/caddy`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiemko%2Fcaddy2-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiemko%2Fcaddy2-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiemko%2Fcaddy2-gen/lists"}