matrix server
Go to file
syui f82529e3d6
fix docker command path
2023-07-04 15:15:52 +09:00
.gitignore first commit 2022-11-22 21:54:07 +09:00
Dockerfile first commit 2022-11-22 21:54:07 +09:00
dendrite.yaml fix conf 2022-11-23 08:36:29 +09:00
entrypoint.sh fix docker command path 2023-07-04 15:15:52 +09:00
fly.toml first commit 2022-11-22 21:54:07 +09:00
readme.md fix 2022-11-22 22:09:59 +09:00

readme.md

fly.io

$ app=xxx
$ flyctl launch --name $app --no-deploy --region ams
$ flyctl volumes create ${app}_data --size 1 --region ams --app $app

db

$ flyctl postgres create
$ flyctl postgres attach ${app}_db -a $app
$ echo $POSTGRES_URL > database_url

key

$ sudo systemctl start docker
$ sudo docker run --rm -it -v $(pwd):/key -w /key --entrypoint /usr/bin/generate-keys matrixdotorg/dendrite-monolith --tls-cert server.crt --tls-key server.key --private-key matrix_key.pem

deploy

$ fly deploy

create user

$ flyctl ssh console
$ /usr/bin/create-account -config /etc/dendrite/dendrite.yaml -username USERNAME -password xxx -admin

domain

https://example.com/.well-known/matrix/server

{
    "m.server": "$app.fly.dev:8448"
}