From 1aab37ddccd1d43a82c538459718daebbebfe88c Mon Sep 17 00:00:00 2001 From: Etherealite Date: Fri, 24 May 2024 23:22:04 -0700 Subject: [PATCH] docs(server): add repo password in server start example (#3875) When starting the server, the typical use case will not involve responding to interactive prompts. This change better reflects the expectations of a user given that fact. --------- Co-authored-by: Julio <1953782+julio-lopez@users.noreply.github.com> --- site/content/docs/Repository Server/_index.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/site/content/docs/Repository Server/_index.md b/site/content/docs/Repository Server/_index.md index 3c2048c43..25bd5b57e 100644 --- a/site/content/docs/Repository Server/_index.md +++ b/site/content/docs/Repository Server/_index.md @@ -47,13 +47,14 @@ Other commands are also available: To start repository server with auto-generated TLS certificate for the first time: ```shell -kopia server start \ - --tls-generate-cert \ - --tls-cert-file ~/my.cert \ - --tls-key-file ~/my.key \ - --address 0.0.0.0:51515 \ - --server-control-username control \ - --server-control-password PASSWORD_HERE +KOPIA_PASSWORD="" \ +KOPIA_SERVER_CONTROL_PASSWORD="" \ + kopia server start \ + --tls-generate-cert \ + --tls-cert-file ~/my.cert \ + --tls-key-file ~/my.key \ + --address 0.0.0.0:51515 \ + --server-control-username control ``` This will generate TLS certificate and key files and store them in the provided paths (`~/my.cert` and `~/my.key` respectively). It will also print certificate SHA256 fingerprint, which will be used later: