Andrew Morgan
9890f23469
Suppress the trusted key server warning for matrix.org in the demo scripts ( #15527 )
pirms 1 gada
Mathieu Velten
1fd1856afc
demo: check if we are in a virtualenv before overriding PYTHONPATH ( #12916 )
pirms 1 gada
Patrick Cloke
a1cb05b3e8
Fix federation in demo scripts. ( #12783 )
pirms 2 gadiem
Shay
3c41d87b67
Add restrictions by default to open registration in Synapse ( #12091 )
pirms 2 gadiem
Patrick Cloke
9a0172d49f
Clean-up demo scripts & documentation ( #12143 )
* Rewrites the demo documentation to be clearer, accurate, and moves it to our documentation tree.
* Improvements to the demo scripts:
* `clean.sh` now runs `stop.sh` first to avoid zombie processes.
* Uses more modern Synapse configuration (and removes some obsolete configuration).
* Consistently use the HTTP ports for server name, etc.
* Remove the `demo/etc` directory and place everything into the `demo/808x` directories.
pirms 2 gadiem
Andy Balaam
b92a2ff797
Fix typo in demo docs: differnt ( #11735 )
pirms 2 gadiem
Dan Callahan
b5e910521b
Fix Shellcheck SC2129: Consider using {..} >> file
Consider using { cmd1; cmd2; } >> file instead of individual redirects.
https://github.com/koalaman/shellcheck/wiki/SC2129
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
13f084eb58
Fix Shellcheck SC2086: Quote to prevent splitting
Double quote to prevent globbing and word splitting.
https://github.com/koalaman/shellcheck/wiki/SC2086
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
7cf83c0aca
Fix Shellcheck SC1001: Meaningless char escapes
This \o will be a regular 'o' in this context.
https://github.com/koalaman/shellcheck/wiki/SC1001
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
dfa6143133
Fix Shellcheck SC2155: Declare + export separately
Declare and assign separately to avoid masking return values.
https://github.com/koalaman/shellcheck/wiki/SC2155
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
5eb481cd5b
Fix Shellcheck SC2115: Ensure never expands to /*
Use "${var:?}" to ensure this never expands to /* .
https://github.com/koalaman/shellcheck/wiki/SC2115
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
64adbb7b54
Fix Shellcheck SC2046: Quote to prevent word split
Quote this to prevent word splitting
https://www.shellcheck.net/wiki/SC2046
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
Dan Callahan
12d79ff1b6
Fix Shellcheck SC2164: exit in case cd fails.
Use `cd ... || exit` in case cd fails.
https://github.com/koalaman/shellcheck/wiki/SC2164
Signed-off-by: Dan Callahan <danc@element.io>
pirms 2 gadiem
manuroe
c1ddbbde4f
Handle all new rate limits in demo scripts ( #9858 )
pirms 3 gadiem
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>
pirms 3 gadiem
Richard van der Hoff
195adf4025
Remove broken and unmaintained 'webserver.py' script ( #9039 )
I'm not even sure what this was supposed to do, but the fact it has python2isms
and nobody has noticed suggests it's not terribly important.
It doesn't seem to have been used since ff23e5ba37
.
pirms 3 gadiem
Patrick Cloke
3bd2a2cbb1
Include a public_baseurl in configs generated by the demo script. ( #8443 )
pirms 3 gadiem
Andrew Morgan
b2945d2672
Fix demo script on ipv6-supported boxes ( #6229 )
The synapse demo was a bit flakey in terms of supporting federation. It turns out that if your computer resolved `localhost` to `::1` instead of `127.0.0.1`, the built-in federation blacklist specified in `start.sh` would still block it, since it contained an entry for `::/127`. Removing this no longer prevents Synapse from contacting `::1`, federation works again on these boxes.
pirms 4 gadiem
Jorik Schellekens
f337d2f0f0
Demo uses deprecated cli option ( #5725 )
* Remove deprecated 'verbose' cli arg
* Create 5725.bugfix
pirms 4 gadiem
Jorik Schellekens
f99554b15d
Revert "Remove deprecated 'verbose' cli arg"
This reverts commit dc7cf81267
.
pirms 4 gadiem
Jorik Schellekens
dc7cf81267
Remove deprecated 'verbose' cli arg
pirms 4 gadiem
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
pirms 4 gadiem
Jorik Schellekens
839f9b9231
One shot demo server startup
Configure the demo servers to use untrusted
tls certs so that they communicate with each other.
This configuration makes them very unsafe so I've added warnings about
it in the readme.
pirms 4 gadiem
Jorik Schellekens
d8db29c481
Use python3 in the demo
pirms 5 gadiem
manuroe
bb925b1bd7
start.sh: Fix the --no-rate-limit option for messages and make it bypass rate limit on registration and login too.
pirms 5 gadiem
Richard van der Hoff
8d98dc8ffe
Clean up gitignores ( #4688 )
I just got bitten by a file being caught by the .gitignore, which shouldn't
have been, and am now pissed off with the .gitignore. I have basically declared
bankruptcy on it and started again.
pirms 5 gadiem
Amber Brown
23b0813599
Require ECDH key exchange & remove dh_params ( #4429 )
* remove dh_params and set better cipher string
pirms 5 gadiem
Erik Johnston
3ce1b8c705
Don't keep appending report_stats to demo config
pirms 8 gadiem
Mark Haines
1941eb315d
Enable stack traces for the demo scripts
pirms 8 gadiem
Erik Johnston
8a519ac76d
Fix demo/start.sh to work with --report-stats
pirms 8 gadiem
Mark Haines
2eb91e6694
enable registration in the demo servers
pirms 8 gadiem
Mark Haines
b24d7ebd6e
Fix the cleanup script to use the right $DIR
pirms 8 gadiem
manuroe
378a0f7a79
Federation demo start.sh: Fixed --no-rate-limit param in the script
pirms 9 gadiem
Erik Johnston
476899295f
Change the way we do logging contexts so that they survive divergences
pirms 9 gadiem
Mark Haines
2f1348f339
Write a default log_config when generating config
pirms 9 gadiem
Mark Haines
74aaacf82a
Don't break when sizes or durations are given as integers
pirms 9 gadiem
Mark Haines
1aa11cf7ce
Allow multiple config files, set up a default config before applying the config files
pirms 9 gadiem
Mark Haines
d624e2a638
Manually generate the default config yaml, remove most of the commandline arguments for synapse anticipating that people will use the yaml instead. Simpify implementing config options by not requiring the classes to hit the super class
pirms 9 gadiem
Erik Johnston
0775c62469
Fix --enable-registration flag to work if you don't give a value
pirms 9 gadiem
Erik Johnston
a2a93a4fa7
Make demo script use --enable-registration
pirms 9 gadiem
manuroe
5116946ae9
Allow registration in the HSes federation demo
pirms 9 gadiem
Mark Haines
c81a19552f
Add ports back to demo/start.sh
pirms 9 gadiem
Mark Haines
b19cf6a105
Wait for events if the incremental sync is empty and a timeout is given
pirms 9 gadiem
Mark Haines
58691680b8
update .gitignore, set media-store-path in demo
pirms 9 gadiem
Mark Haines
ff23e5ba37
remove demo webserver since synapse serves up the webclient itself
pirms 9 gadiem
Mark Haines
dca3ba2f77
Determine webclient path by the python module it is contained in
pirms 9 gadiem
Erik Johnston
af7ae048f8
Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer
pirms 9 gadiem
manuroe
9e57ed2b1f
Added a param (--no-rate-limit) to demo/start.sh to disable the HS rate limit
pirms 9 gadiem
Erik Johnston
0393e87519
Make the demo listen on both HTTP and HTTPS ports
pirms 9 gadiem
Mark Haines
9ea1de432d
Fix homeserver config parsing
pirms 9 gadiem