{"id":13548450,"url":"https://github.com/justmiles/traefik-cloudflare-tunnel","last_synced_at":"2025-09-25T23:01:48.422Z","repository":{"id":50386496,"uuid":"492978498","full_name":"justmiles/traefik-cloudflare-tunnel","owner":"justmiles","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-27T16:42:06.000Z","size":159,"stargazers_count":59,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T06:03:02.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/justmiles.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-05-16T19:48:42.000Z","updated_at":"2025-03-22T04:33:17.000Z","dependencies_parsed_at":"2024-08-01T12:15:55.257Z","dependency_job_id":"8512be41-ca1d-4c31-9891-260fb3ca73d9","html_url":"https://github.com/justmiles/traefik-cloudflare-tunnel","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmiles%2Ftraefik-cloudflare-tunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmiles%2Ftraefik-cloudflare-tunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmiles%2Ftraefik-cloudflare-tunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justmiles%2Ftraefik-cloudflare-tunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justmiles","download_url":"https://codeload.github.com/justmiles/traefik-cloudflare-tunnel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253181402,"owners_count":21866989,"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-08-01T12:01:10.534Z","updated_at":"2025-09-25T23:01:43.150Z","avatar_url":"https://github.com/justmiles.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# traefik-cloudflare-tunnel\n\nSync Cloudflare Zero-Trust tunnels from Traefik routes\n\n## Configuration\n\n| Environment Variable  | Type   | Description                                                  |\n| :-------------------- | ------ | ------------------------------------------------------------ |\n| CLOUDFLARED_TOKEN     | String | Token for the `cloudflared` daemon. This is the token provided after [creating a tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/#1-create-a-tunnel). |\n| CLOUDFLARE_API_TOKEN  | String | A valid [cloudflare API token](https://dash.cloudflare.com/profile/api-tokens) |\n| CLOUDFLARE_ACCOUNT_ID | String | Your account ID. Available in the URL at https://dash.cloudflare.com |\n| CLOUDFLARE_TUNNEL_ID  | String | The ID of your cloudlfare tunnel                             |\n| CLOUDFLARE_ZONE_ID    | String | The cloudflare zone ID of your site.                         |\n| DOMAIN_NAME           | String | The domain name used for these tunnels                       |\n| TRAEFIK_API_ENDPOINT | String | The HTTP uri to Traefik's API (example: http://192.168.1.100:8081)                       |\n| TRAEFIK_SERVICE_ENDPOINT | String | The HTTP uri to Traefik's web entrypoint |\n| TRAEFIK_ENTRYPOINT | String | Optional. Only target routes registered to these entrypoints |\n\n\n**Cloudflare Permissions**\n\nThe `CLOUDFLARE_API_TOKEN` is your API token and you can create/obtain one here: https://dash.cloudflare.com/profile/api-tokens\n\nThe `CLOUDFLARE_ACCOUNT_ID` is your account ID is a 32 character hash unique to you. After you login to cloudflare, you can find it in the URL here: https://dash.cloudflare.com\n\nThe `CLOUDFLARE_TUNNEL_ID` is the ID of the Cloudflare tunnel. You can create one from the Zero Trust dashboard and navigating to Access -\u003e Tunnels. The ID is under the name.\n\nEnsure the permissions for your Cloudflare token matches the following:\n\n- Account -\u003e Cloudflare Tunnel -\u003e Edit\n- Account -\u003e Zero Trust -\u003e Edit\n- User -\u003e User Details -\u003e Read\n- Zone -\u003e DNS -\u003e Edit\n\n## Example\n\n`cd` into the `example` directory and update the `.env` with your CloudFlare info.\n\n```bash\ncd example\ncp .env.example .env\nvi .env\n```\n\nRun `docker-compose up` to start traefik, cloudflared, traefik-cloudflare-tunnel, and an example app.\n\n```bash\ndocker-compose up\n```\n\nIf authentication is correct, you should be able to browse to the provided tunnel!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustmiles%2Ftraefik-cloudflare-tunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustmiles%2Ftraefik-cloudflare-tunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustmiles%2Ftraefik-cloudflare-tunnel/lists"}