mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
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'.
This commit is contained in:
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user