aeleos / cloudflared

Cloudflare Tunnel Instructions and Template for Unraid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container ignoring config.yaml

mcd92 opened this issue · comments

commented

Even after preparing the config.yaml file and saving it in the indicated folder (/mnt/user/appdata/cloudflared/, which is passed to the container as /home/nonroot/.cloudflared/), the service on the container does not seem to use it.

I also tried to change the Post arguments to

tunnel --config /home/nonroot/.cloudflared/config.yaml

but without success.

As I was writing this issue, I found what may be the solution: adding the parameter "Config" to the XML, as below.

image

huh strange, can you post your log output when it fails to find config.yaml

commented

So the last days I've been running the container smoothly, but instead of

tunnel run UUID

I used

tunnel --config /home/nonroot/.cloudflared/config.yaml run UUID

Now, I tried again to run the container - this time with the updated parameter --restart unless-stopped. And it seems to be absolutely necessary for the container to run properly.

Thank you!

You shouldn’t need to pass the config file in, as that is one of the default locations (~/.cloudflared) but if it works it works. Also, if you update to the latest dockerhub version, the cloudflared daemon wouldn’t need to update, so you won’t need to use —restart always, but it’s probably good to have it just in case.