{"id":15946351,"url":"https://github.com/haq/caddy-cf","last_synced_at":"2025-10-19T06:30:39.220Z","repository":{"id":111471472,"uuid":"467659592","full_name":"haq/caddy-cf","owner":"haq","description":"caddy v2 with the cloudflare \u0026 dynamicdns module","archived":true,"fork":false,"pushed_at":"2023-07-19T06:56:15.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-17T01:11:38.347Z","etag":null,"topics":["caddy","cloudflare","ddns"],"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/haq.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}},"created_at":"2022-03-08T20:06:58.000Z","updated_at":"2023-12-19T19:56:39.000Z","dependencies_parsed_at":"2024-10-07T09:21:26.262Z","dependency_job_id":"4b3509c2-1885-4674-a811-8eca9a3059ef","html_url":"https://github.com/haq/caddy-cf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haq%2Fcaddy-cf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haq%2Fcaddy-cf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haq%2Fcaddy-cf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haq%2Fcaddy-cf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haq","download_url":"https://codeload.github.com/haq/caddy-cf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237073137,"owners_count":19251036,"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","cloudflare","ddns"],"created_at":"2024-10-07T09:21:17.069Z","updated_at":"2025-10-19T06:30:33.955Z","avatar_url":"https://github.com/haq.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"![create and publish docker image](https://github.com/haq/caddy-cf/actions/workflows/docker-publish.yml/badge.svg)\n![docker image size](https://ghcr-badge.egpl.dev/haq/caddy-cf/size)\n![github code size in bytes](https://img.shields.io/github/languages/code-size/haq/caddy-cf)\n\n# caddy-cf\n\nA caddy docker image containing the [cloudflare](https://github.com/caddy-dns/cloudflare) \u0026 [dynamicdns](https://github.com/mholt/caddy-dynamicdns) modules.\n\n## docker-cli\n\n### volumes\n\n```shell\ndocker volume create caddy_config\ndocker volume create caddy_data\n```\n\n### container\n\n```shell\ndocker run -d \\\n  --name caddy \\\n  --restart unless-stopped \\\n  --network host \\\n  -e CLOUDFLARE_API_TOKEN=cf_api_token \\\n  -v \"$PWD\"/Caddyfile:/etc/caddy/Caddyfile \\\n  -v caddy_config:/config \\\n  -v caddy_data:/data \\\n  ghcr.io/haq/caddy-cf\n```\n\n## caddyfile\n\n```Caddyfile\n{\n    email email_address_for_notifications\n    dynamic_dns {\n        provider cloudflare {env.CLOUDFLARE_API_TOKEN}\n        domains {\n            domain.com sub\n            domain.com sub1\n        }\n        check_interval 5m\n        ip_source simple_http https://icanhazip.com\n        versions ipv4 ipv6\n        ttl 1h\n    }\n}\n\n(cloudflare) {\n    tls {\n        dns cloudflare {env.CLOUDFLARE_API_TOKEN}\n    }\n}\n\nsub.domain.com {\n    import cloudflare\n    reverse_proxy ip:port\n}\n\nsub1.domain.com {\n    import cloudflare\n    reverse_proxy ip:port\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaq%2Fcaddy-cf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaq%2Fcaddy-cf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaq%2Fcaddy-cf/lists"}