Cloudflared config not updating

When running cloudflared as service when I make any changes to config.yml it doesn’t take effect even after restarting the cloudflared

That’s because the service installed most likely is using a config that is a copy of your original one.

I don’t know which operating system you are using, but looking at the case of Linux, you can see here that it copies the file to /etc/cloudflared/config.yaml and that’s what is used in the systemd unit file: cloudflared/linux_service.go at master · cloudflare/cloudflared · GitHub

1 Like

So I have to delete the file in /etc/cloudflared/config.yaml every time I make a change and reinstall as service

Why not just edit this file directly? Or, maybe create a soft link from this directory to another directory if you don’t want to enter this directory to modify the config file.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.