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

Loading…
Cancel
Save