mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
docs: Add key generation without go
Signed-off-by: Olivier Gimenez <oliv4945@gmail.com>
This commit is contained in:
parent
fdd534f86a
commit
337b023729
|
|
@ -34,13 +34,33 @@ runtime config should come from. The mounted folder must contain:
|
|||
- `server.crt` certificate file
|
||||
- `server.key` private key file for the above certificate
|
||||
|
||||
To generate keys:
|
||||
**To generate keys:**
|
||||
With Go installed on the host
|
||||
|
||||
```
|
||||
mkdir keys
|
||||
go run github.com/matrix-org/dendrite/cmd/generate-keys \
|
||||
--private-key=matrix_key.pem \
|
||||
--tls-cert=server.crt \
|
||||
--tls-key=server.key
|
||||
--private-key=keys/matrix_key.pem \
|
||||
--tls-cert=keys/server.crt \
|
||||
--tls-key=keys/server.key
|
||||
```
|
||||
|
||||
Without Go on the host, with monolith deployment
|
||||
|
||||
```
|
||||
docker-compose run --entrypoint generate-keys monolith \
|
||||
--private-key=/keys/matrix_key.pem \
|
||||
--tls-cert=/keys/server.crt \
|
||||
--tls-key=/keys/server.key
|
||||
```
|
||||
|
||||
Without Go on the host, with polylith deployment
|
||||
|
||||
```
|
||||
docker-compose run --entrypoint generate-keys key_server \
|
||||
--private-key=/keys/matrix_key.pem \
|
||||
--tls-cert=/keys/server.crt \
|
||||
--tls-key=/keys/server.key
|
||||
```
|
||||
|
||||
## Starting Dendrite as a monolith deployment
|
||||
|
|
|
|||
|
|
@ -4,14 +4,15 @@ services:
|
|||
hostname: monolith
|
||||
image: matrixdotorg/dendrite-monolith:latest
|
||||
command: [
|
||||
"--tls-cert=server.crt",
|
||||
"--tls-key=server.key"
|
||||
"--tls-cert=/keys/server.crt",
|
||||
"--tls-key=/keys/server.key"
|
||||
]
|
||||
ports:
|
||||
- 8008:8008
|
||||
- 8448:8448
|
||||
volumes:
|
||||
- ./config:/etc/dendrite
|
||||
- ./keys:/keys
|
||||
networks:
|
||||
- internal
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ services:
|
|||
command: keyserver
|
||||
volumes:
|
||||
- ./config:/etc/dendrite
|
||||
- ./keys:/keys
|
||||
networks:
|
||||
- internal
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue