services: cloudflare-tunnel: Set token in environment variable.

* rosenthal/services/child-error.scm (cloudflare-tunnel-shepherd-service)
[start]<#:environment-variables>: Set token here to avoid seeing it in `ps'.
pull/1/head
Hilton Chain 1 year ago
parent 2ba2f5a117
commit 62db72e49f
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 5
      rosenthal/services/child-error.scm

@ -170,7 +170,6 @@ headers. This can expose sensitive information in your logs.")
#$@extra-tunnel-options #$@extra-tunnel-options
"run" "run"
"--token" #$token
#$@(if http2-origin? #$@(if http2-origin?
'("--http2-origin") '("--http2-origin")
'()) '())
@ -180,7 +179,9 @@ headers. This can expose sensitive information in your logs.")
#$@extra-options) #$@extra-options)
#:user "nobody" #:user "nobody"
#:group "nogroup" #:group "nogroup"
#:log-file #$log-file)) #:log-file #$log-file
#:environment-variables
(list (format #f "TUNNEL_TOKEN=~a" #$token))))
(stop #~(make-kill-destructor))))))) (stop #~(make-kill-destructor)))))))
(define cloudflare-tunnel-service-type (define cloudflare-tunnel-service-type

Loading…
Cancel
Save