A small container acting as a proxy for [https://www.cloudflare.com/products/tunnel/](Cloudflare Tunnel) (formerly Argo Tunnel).
- Active Cloudflare Zero Trust subscription
- Active domain
- Authorize Cloudflare Tunnel and download your certificate: https://dash.cloudflare.com/warp
docker build --no-cache -t MyCompany/cft-proxy .
cert.pem
: your certificate from the Cloudflare Tunnel authorization, make sure that the name iscert.pem
suvervisord.conf
: supervisord config, no need to change thatconfig.yaml
: change URL and other options to your needs, see the command-line arguments- Logging: as you like
docker run -d \
--name="my-cft-proxy" \
-v /path/to/your/cert.pem:/etc/cloudflared/cert.pem \
-v /path/to/your/supervisord.conf:/etc/supervisord.conf \
-v /path/to/your/config.yaml:/etc/cloudflared/config.yaml \
-v /path/to/your/log:/var/log \
MyCompany/cft-proxy
Using the config.yaml
above, the following applies:
- Public URL for clients is
example.mycompany.com
- Traffic to
example.mycompany.com
gets into the Cloudflare Tunnel and reaches the origin serverhttps://192.168.99.128