/docker-argo-proxy

A small Docker container acting as a proxy for Cloudflare Argo.

Primary LanguageDockerfile

docker-argo-proxy

A small container acting as a proxy for [https://www.cloudflare.com/products/tunnel/](Cloudflare Tunnel) (formerly Argo Tunnel).

Pre-requirements:

Build it:

docker build --no-cache -t MyCompany/cft-proxy .

Explaining the mount volumes:

  • cert.pem: your certificate from the Cloudflare Tunnel authorization, make sure that the name is cert.pem
  • suvervisord.conf: supervisord config, no need to change that
  • config.yaml: change URL and other options to your needs, see the command-line arguments
  • Logging: as you like

Run it:

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 server https://192.168.99.128