synapse-old/demo
Quentin Gliech d4c4798a25
Use interpreter from $PATH instead of absolute paths in various scripts using /usr/bin/env (#9689)
On NixOS, `bash` isn't under `/bin/bash` but rather in some directory in `$PATH`. Locally, I've been patching those scripts to make them work.

`/usr/bin/env` seems to be the only [portable way](https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my) to use binaries from the PATH as interpreters.

Signed-off-by: Quentin Gliech <quentingliech@gmail.com>
2021-03-25 16:53:54 +00:00
..
.gitignore Clean up gitignores (#4688) 2019-02-20 11:10:50 +00:00
README One shot demo server startup 2019-06-17 16:24:28 +01:00
clean.sh Use interpreter from $PATH instead of absolute paths in various scripts using /usr/bin/env (#9689) 2021-03-25 16:53:54 +00:00
start.sh Use interpreter from $PATH instead of absolute paths in various scripts using /usr/bin/env (#9689) 2021-03-25 16:53:54 +00:00
stop.sh Use interpreter from $PATH instead of absolute paths in various scripts using /usr/bin/env (#9689) 2021-03-25 16:53:54 +00:00

README

DO NOT USE THESE DEMO SERVERS IN PRODUCTION

Requires you to have done:
    python setup.py develop


The demo start.sh will start three synapse servers on ports 8080, 8081 and 8082, with host names localhost:$port. This can be easily changed to `hostname`:$port in start.sh if required.

To enable the servers to communicate untrusted ssl certs are used. In order to do this the servers do not check the certs
and are configured in a highly insecure way. Do not use these configuration files in production.

stop.sh will stop the synapse servers and the webclient.

clean.sh will delete the databases and log files.

To start a completely new set of servers, run:

    ./demo/stop.sh; ./demo/clean.sh && ./demo/start.sh


Logs and sqlitedb will be stored in demo/808{0,1,2}.{log,db}



Also note that when joining a public room on a differnt 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.