aeleos / cloudflared

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

How to run two post args commands? #19

Closed mitchross closed 2 years ago

mitchross commented 3 years ago

I want to run two commands,

tunnel route dns 147de69d-xxxxxxaa3997169 xxxx.yyy.zzztunnel and run 147de69d-a46axxxxx3997169

How do I do this in the Unraid template?

Thanks

aeleos commented 2 years ago

The route command only exists to create a DNS record for you. This only happens once, so you shouldn't need it as a post arg. If you are looking to dynamically create the DNS records, I am not sure that putting it in post args is the right solution. Refer to this article for more detail. https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/routing-to-tunnel/dns