cloudflared: support setting tunnel token
authorScott McKenzie <scott@noizyland.net>
Fri, 19 May 2023 17:38:27 +0000 (03:38 +1000)
committerTianling Shen <cnsztl@gmail.com>
Sat, 20 May 2023 05:04:04 +0000 (13:04 +0800)
Allows user to provide a token for Cloudflare tunnel.
When provided along with credentials, this will take precedence.

Signed-off-by: Scott McKenzie <scott@noizyland.net>
net/cloudflared/files/cloudflared.init

index 4fac31aac43131b3e9de07378a0bf68ff653e0d0..466cb5eb3164fb7a61377420a8e73887c0cdd99a 100755 (executable)
@@ -31,6 +31,7 @@ start_service() {
        append_param_arg "logfile"
 
        procd_append_param command "run"
+       append_param_arg "token"
 
        procd_set_param respawn
        procd_set_param stderr 1