https://github.com/firecow/cloudflared
Make named tunnels work like "legacy" tunnels
https://github.com/firecow/cloudflared
cloudflare tunnel
Last synced: 3 months ago
JSON representation
Make named tunnels work like "legacy" tunnels
- Host: GitHub
- URL: https://github.com/firecow/cloudflared
- Owner: firecow
- Created: 2021-09-20T07:34:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T11:16:42.000Z (3 months ago)
- Last Synced: 2025-04-13T12:24:24.086Z (3 months ago)
- Topics: cloudflare, tunnel
- Language: Shell
- Homepage:
- Size: 120 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudflared
[](https://github.com/firecow/cloudflared/actions)
[](https://renovatebot.com)Cloudflared "legacy" tunnels have been deprecated. A switch to named tunnels is needed.
This image mimics the "niceness" of legacy tunnels, but uses named tunnels internally.
All that is needed is a cert.pem, `TUNNEL_HOSTNAME` and `TUNNEL_URL` or `TUNNEL_UNIX_SOCKET`
```yml
services:
cloudflared:
image: firecow/cloudflared:${FCF_IMAGE_VERSION}
environment:
TUNNEL_HOSTNAME: https://somesub.example.com
TUNNEL_URL: http://webserver:8080
volumes:
- ./example.com.cert.pem:/etc/cloudflared/cert.pem
```These environment variables have other defaults than original.
```shell
TUNNEL_TRANSPORT_LOGLEVEL="error"
TUNNEL_METRICS="0.0.0.0:2000" # See Dockerfile healthcheck
```Dockerfile CMD is set to `firecow_cloudflared`, overriding this in `docker-compose.yml` or `docker run` will bypass the DNS and named tunnel auto process.
`TUNNEL_URL: http://webserver:8080` can be replaced with `TUNNEL_UNIX_SOCKET: unix://var/run/origin.sock`