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>
This commit is contained in:
Etherealite
2024-05-24 23:22:04 -07:00
committed by GitHub
parent 567a4a4eb8
commit 1aab37ddcc

View File

@@ -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="<password-for-the-repository>" \
KOPIA_SERVER_CONTROL_PASSWORD="<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: