diff options
author | Ben Yanke <ben@benyanke.com> | 2021-06-14 08:08:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 14:08:59 +0100 |
commit | ce574f5e29914e78f0ad1a8bbef64bf29bf0044a (patch) | |
tree | 8f1d0ba576209e0f8cfe8bc1114a385efd78b521 /build | |
parent | 183f43d38da215c922eff025b73417d93661cd49 (diff) |
Fix Key Generation Docs - resolves #1759 (#1865)
This fixes the issue found in #1759 which broke due to go changes. The new command allows you to generate keys with docker, and drop them in the current working directory.
Diffstat (limited to 'build')
-rw-r--r-- | build/docker/README.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/build/docker/README.md b/build/docker/README.md index 818f92d0..c3eb73b2 100644 --- a/build/docker/README.md +++ b/build/docker/README.md @@ -37,12 +37,17 @@ runtime config should come from. The mounted folder must contain: To generate keys: ``` -go run github.com/matrix-org/dendrite/cmd/generate-keys \ - --private-key=matrix_key.pem \ - --tls-cert=server.crt \ - --tls-key=server.key +docker run --rm --entrypoint="" \ + -v $(pwd):/mnt \ + matrixdotorg/dendrite-monolith:latest \ + /usr/bin/generate-keys \ + -private-key /mnt/matrix_key.pem \ + -tls-cert /mnt/server.crt \ + -tls-key /mnt/server.key ``` +The key files will now exist in your current working directory, and can be mounted into place. + ## Starting Dendrite as a monolith deployment Create your config based on the `dendrite.yaml` configuration file in the `docker/config` |