mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 05:01:41 +00:00
51ab0a8ccf
This is #2819 but rebased on latest `main`. This PR is against main too as opposed to the `moderncsqlite` branch. The main change here is simply: ```go // add query parameters to the dsn if strings.Contains(dsn, "?") { dsn += "&" } else { dsn += "?" } // wait some time before erroring if the db is locked // https://gitlab.com/cznic/sqlite/-/issues/106#note_1058094993 dsn += "_pragma=busy_timeout%3d10000" ``` ### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [x] I have added tests for PR _or_ I have justified why this PR doesn't need tests. * [x] Pull request includes a [sign off below using a legally identifiable name](https://matrix-org.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed off privately. Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com> |
||
---|---|---|
.. | ||
embed | ||
signing | ||
yggconn | ||
yggrooms | ||
main.go | ||
README.md |
Yggdrasil Demo
This is the Dendrite Yggdrasil demo! It's easy to get started - all you need is Go 1.18 or later.
To run the homeserver, start at the root of the Dendrite repository and run:
go run ./cmd/dendrite-demo-yggdrasil
The following command line arguments are accepted:
-peer tcp://a.b.c.d:e
to specify a static Yggdrasil peer to connect to - you will need to supply this if you do not have another Yggdrasil node on your network-port 12345
to specify a port to listen on for client connections
If you need to find an internet peer, take a look at this list.
Then point your favourite Matrix client to the homeserver URLhttp://localhost:8008
(or whichever -port
you specified), create an account and log in.
If your peering connection is operational then you should see a Connected TCP:
line in the log output. If not then try a different peer.
Once logged in, you should be able to open the room directory or join a room by its ID.