cloudflared: support setting tunnel token
authorScott McKenzie <scott@noizyland.net>
Fri, 19 May 2023 17:38:27 +0000 (03:38 +1000)
committerTianling Shen <cnsztl@immortalwrt.org>
Wed, 21 Jun 2023 17:43:23 +0000 (01:43 +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>
(cherry picked from commit 61106a8df299de5297e816d1f75fbb602382b60c)

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