aeleos / cloudflared

Cloudflare Tunnel Instructions and Template for Unraid
171 stars 21 forks source link

Update needed from 2020.7.0 to 2021.5.9 #4

Closed mcd92 closed 3 years ago

mcd92 commented 3 years ago

Hello,

Thank you for making available in your github the xml and instructions to run the Cloudflare container on an Unraid instance. This tool seems to be the only way I will get to open some services to the internet, since my ISP blocked ports 80 and 443 on my router, so I can only forward the other ones.

I'm trying to get the cloudflared docker functioning on my Unraid server. After some struggling, I managed to get it running with the right URL and HOSTNAME. But after less than a minute it shuts down, claiming the need to update cloudflared service:

image

I will note another issue I believe I have found, but in another ticket so it can be addressed separately.

Thank you very much in advance!

mcd92 commented 3 years ago

Actually, after restarting the docker, it is already updated.

Should be remember though, that everytime one makes a change to the XML and rebuild the container, one needs to start it twice so it updates and then start with the updated version.

Perhaps it is actually an issue on the Cloudflare container, and cannot be address through the XML. Anyway, I believe this deserves a note on the instructions.

aeleos commented 3 years ago

This is a known issue, the best way around it is to add --restart unless-stopped to the extra paramters. Occasionally cloudflared will exit (unrelated to the update) when started and it always runs on the second start. Using --restart unless-stopped will cause the container to get restarted if cloudflared exits. Let me know if this fixes when you change the XML as it should

aeleos commented 3 years ago

Also, the template on CA is updated to include --restart unless-stopped by default, so hopefully this shouldn't warrant a note in the instructions

mcd92 commented 3 years ago

Indeed, the --restart parameter is included in the XML. Also, I have tested the container for the last days and it is running smoothly. Thanks!

aeleos commented 3 years ago

Great, glad I could help