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>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
manuroe
c1ddbbde4f
Handle all new rate limits in demo scripts ( #9858 )
3 years ago
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>
3 years ago
Patrick Cloke
3bd2a2cbb1
Include a public_baseurl in configs generated by the demo script. ( #8443 )
3 years ago
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.
4 years ago
Jorik Schellekens
f337d2f0f0
Demo uses deprecated cli option ( #5725 )
* Remove deprecated 'verbose' cli arg
* Create 5725.bugfix
4 years ago
Jorik Schellekens
f99554b15d
Revert "Remove deprecated 'verbose' cli arg"
This reverts commit dc7cf81267
.
4 years ago
Jorik Schellekens
dc7cf81267
Remove deprecated 'verbose' cli arg
4 years ago
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.
4 years ago
Jorik Schellekens
d8db29c481
Use python3 in the demo
5 years ago
manuroe
bb925b1bd7
start.sh: Fix the --no-rate-limit option for messages and make it bypass rate limit on registration and login too.
5 years ago
Erik Johnston
3ce1b8c705
Don't keep appending report_stats to demo config
8 years ago
Mark Haines
1941eb315d
Enable stack traces for the demo scripts
8 years ago
Erik Johnston
8a519ac76d
Fix demo/start.sh to work with --report-stats
8 years ago
Mark Haines
2eb91e6694
enable registration in the demo servers
8 years ago
manuroe
378a0f7a79
Federation demo start.sh: Fixed --no-rate-limit param in the script
9 years ago
Erik Johnston
476899295f
Change the way we do logging contexts so that they survive divergences
9 years ago
Mark Haines
2f1348f339
Write a default log_config when generating config
9 years ago
Mark Haines
74aaacf82a
Don't break when sizes or durations are given as integers
9 years ago
Mark Haines
1aa11cf7ce
Allow multiple config files, set up a default config before applying the config files
9 years ago
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
9 years ago
Erik Johnston
0775c62469
Fix --enable-registration flag to work if you don't give a value
9 years ago
Erik Johnston
a2a93a4fa7
Make demo script use --enable-registration
9 years ago
manuroe
5116946ae9
Allow registration in the HSes federation demo
9 years ago
Mark Haines
c81a19552f
Add ports back to demo/start.sh
9 years ago
Mark Haines
b19cf6a105
Wait for events if the incremental sync is empty and a timeout is given
9 years ago
Mark Haines
58691680b8
update .gitignore, set media-store-path in demo
9 years ago
Mark Haines
ff23e5ba37
remove demo webserver since synapse serves up the webclient itself
9 years ago
Mark Haines
dca3ba2f77
Determine webclient path by the python module it is contained in
9 years ago
Erik Johnston
af7ae048f8
Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer
9 years ago
manuroe
9e57ed2b1f
Added a param (--no-rate-limit) to demo/start.sh to disable the HS rate limit
9 years ago
Erik Johnston
0393e87519
Make the demo listen on both HTTP and HTTPS ports
9 years ago
Mark Haines
9ea1de432d
Fix homeserver config parsing
9 years ago
Erik Johnston
1291ac93f3
Add the ability to turn on the twisted manhole telnet service.
9 years ago
Matthew Hodgson
8d5ceccfc7
-w is no more
9 years ago
Erik Johnston
2e1ab9db08
Only start event streaming after having set up the controllers.
9 years ago
matrix.org
4f475c7697
Reference Matrix Home Server
9 years ago