From dc57774f63084c66fb005ccafc93906f26f5d14c Mon Sep 17 00:00:00 2001 From: Udi Oron Date: Tue, 10 Dec 2024 13:29:18 +0200 Subject: [PATCH] docs: add -w 0 to base64 for safe usage in ssh commands --- docs/configuration/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration/environment-variables.md b/docs/configuration/environment-variables.md index 508a649cf..3734d44c6 100644 --- a/docs/configuration/environment-variables.md +++ b/docs/configuration/environment-variables.md @@ -39,7 +39,7 @@ dokku config:set node-js-app KEY="VAL\ WITH\ SPACES" Dokku can also read base64 encoded values. That's the easiest way to set a value with newlines or spaces. To set a value with newlines you need to base64 encode it first and pass the `--encoded` flag: ```shell -dokku config:set --encoded node-js-app KEY="$(base64 ~/.ssh/id_rsa)" +dokku config:set --encoded node-js-app KEY="$(base64 -w 0 ~/.ssh/id_rsa)" ``` When setting or unsetting environment variables, you may wish to avoid an application restart. This is useful when developing plugins or when setting multiple environment variables in a scripted manner. To do so, use the `--no-restart` flag: