I’ve been wrestling with getting Cloudflare Tunnel set up. I try the following:
- I first run:
docker run -v ~/.cloudflared:/home/nonroot/.cloudflared cloudflare/cloudflared:2021.8.2 login
Please open the following URL and log in with your Cloudflare account:
<callback URL>
Leave cloudflared running to download the cert automatically.
You have successfully logged in.
If you wish to copy your credentials to a server, they have been saved to:
/home/nonroot/.cloudflared/cert.pem
- I then run:
docker run -v ~/.cloudflared:/home/nonroot/.cloudflared cloudflare/cloudflared:2021.8.2 tunnel --no-autoupdate --hostname myhost.mydomain.us --url local_other_machine
Things look like they are working, but when I visit myhost.mydomain.us, I am initially prompted with an email to receive the pin, enter in the pin, and then I get a “too many redirects”. How do I work around this?
Thanks in advance!
Robert.