2025-04-28 17:34:10 -04:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
2025-04-28 19:05:33 -04:00
|
|
|
git clone --depth=1 https://github.com/element-hq/dendrite
|
2025-04-28 17:34:10 -04:00
|
|
|
cd dendrite
|
2025-04-28 19:05:33 -04:00
|
|
|
git fetch --unshallow
|
2025-04-28 17:34:10 -04:00
|
|
|
go build -o bin/ ./cmd/...
|
2025-04-28 19:05:33 -04:00
|
|
|
go build -o bin/ ./contrib/...
|
2025-04-28 17:34:10 -04:00
|
|
|
|
|
|
|
# Generate a Matrix signing key for federation (required)
|
2025-04-28 19:05:33 -04:00
|
|
|
#./bin/generate-keys --private-key matrix_key.pem
|
2025-04-28 17:34:10 -04:00
|
|
|
|
|
|
|
# Generate a self-signed certificate (optional, but a valid TLS certificate is normally
|
|
|
|
# needed for Matrix federation/clients to work properly!)
|
2025-04-28 19:05:33 -04:00
|
|
|
#./bin/generate-keys --tls-cert server.crt --tls-key server.key
|
2025-04-28 17:34:10 -04:00
|
|
|
|
|
|
|
# Copy and modify the config file - you'll need to set a server name and paths to the keys
|
|
|
|
# at the very least, along with setting up the database connection strings.
|
2025-04-28 19:05:33 -04:00
|
|
|
#cp dendrite-sample.yaml dendrite.yaml
|
2025-04-28 17:34:10 -04:00
|
|
|
|
|
|
|
# Build and run the server:
|
2025-04-29 21:01:38 -04:00
|
|
|
./bin/dendrite-demo-i2p --config ../dendrite.yaml
|
2025-04-28 17:34:10 -04:00
|
|
|
|
|
|
|
# Create an user account (add -admin for an admin user).
|
|
|
|
# Specify the localpart only, e.g. 'alice' for '@alice:domain.com'
|
2025-04-28 19:05:33 -04:00
|
|
|
#./bin/create-account --config dendrite.yaml --username alice
|