Skip to content

Commit

Permalink
docs(server): add repo password in server start example (kopia#3875)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
etherealite and julio-lopez committed May 25, 2024
1 parent 567a4a4 commit 1aab37d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions site/content/docs/Repository Server/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1aab37d

Please sign in to comment.