From 7c5dd6ffb85f208632f7a2018a922b5ef2083c18 Mon Sep 17 00:00:00 2001 From: anoadragon453 Date: Tue, 22 Mar 2022 16:30:53 +0000 Subject: deploy: 6b26536a52f77aa5573b4d2afedae448fac31b7c --- latest/development/demo.html | 289 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 latest/development/demo.html (limited to 'latest/development/demo.html') diff --git a/latest/development/demo.html b/latest/development/demo.html new file mode 100644 index 0000000000..7345070101 --- /dev/null +++ b/latest/development/demo.html @@ -0,0 +1,289 @@ + + + + + + Demo scripts - Synapse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + +
+
+ +
+ +
+ +

Synapse demo setup

+

DO NOT USE THESE DEMO SERVERS IN PRODUCTION

+

Requires you to have a Synapse development environment setup.

+

The demo setup allows running three federation Synapse servers, with server +names localhost:8080, localhost:8081, and localhost:8082.

+

You can access them via any Matrix client over HTTP at localhost:8080, +localhost:8081, and localhost:8082 or over HTTPS at localhost:8480, +localhost:8481, and localhost:8482.

+

To enable the servers to communicate, self-signed SSL certificates are generated +and the servers are configured in a highly insecure way, including:

+
    +
  • Not checking certificates over federation.
  • +
  • Not verifying keys.
  • +
+

The servers are configured to store their data under demo/8080, demo/8081, and +demo/8082. This includes configuration, logs, SQLite databases, and media.

+

Note that when joining a public room on a different HS via "#foo:bar.net", then +you are (in the current impl) joining a room with room_id "foo". This means that +it won't work if your HS already has a room with that name.

+

Using the demo scripts

+

There's three main scripts with straightforward purposes:

+
    +
  • start.sh will start the Synapse servers, generating any missing configuration. +
      +
    • This accepts a single parameter --no-rate-limit to "disable" rate limits +(they actually still exist, but are very high).
    • +
    +
  • +
  • stop.sh will stop the Synapse servers.
  • +
  • clean.sh will delete the configuration, databases, log files, etc.
  • +
+

To start a completely new set of servers, run:

+
./demo/stop.sh; ./demo/clean.sh && ./demo/start.sh
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit 1.5.1