Andrew Morgan
9890f23469
Suppress the trusted key server warning for matrix.org in the demo scripts ( #15527 )
1 年之前
Mathieu Velten
1fd1856afc
demo: check if we are in a virtualenv before overriding PYTHONPATH ( #12916 )
1 年之前
Patrick Cloke
a1cb05b3e8
Fix federation in demo scripts. ( #12783 )
2 年之前
Shay
3c41d87b67
Add restrictions by default to open registration in Synapse ( #12091 )
2 年之前
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.
2 年之前
Andy Balaam
b92a2ff797
Fix typo in demo docs: differnt ( #11735 )
2 年之前
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>
2 年之前
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 年之前
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 年之前
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 年之前
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>
2 年之前
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 年之前
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 年之前
manuroe
c1ddbbde4f
Handle all new rate limits in demo scripts ( #9858 )
3 年之前
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 年之前
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
.
3 年之前
Patrick Cloke
3bd2a2cbb1
Include a public_baseurl in configs generated by the demo script. ( #8443 )
3 年之前
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 年之前
Jorik Schellekens
f337d2f0f0
Demo uses deprecated cli option ( #5725 )
* Remove deprecated 'verbose' cli arg
* Create 5725.bugfix
4 年之前
Jorik Schellekens
f99554b15d
Revert "Remove deprecated 'verbose' cli arg"
This reverts commit dc7cf81267
.
4 年之前
Jorik Schellekens
dc7cf81267
Remove deprecated 'verbose' cli arg
4 年之前
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
4 年之前
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 年之前
Jorik Schellekens
d8db29c481
Use python3 in the demo
5 年之前
manuroe
bb925b1bd7
start.sh: Fix the --no-rate-limit option for messages and make it bypass rate limit on registration and login too.
5 年之前
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.
5 年之前
Amber Brown
23b0813599
Require ECDH key exchange & remove dh_params ( #4429 )
* remove dh_params and set better cipher string
5 年之前
Erik Johnston
3ce1b8c705
Don't keep appending report_stats to demo config
8 年之前
Mark Haines
1941eb315d
Enable stack traces for the demo scripts
8 年之前
Erik Johnston
8a519ac76d
Fix demo/start.sh to work with --report-stats
8 年之前
Mark Haines
2eb91e6694
enable registration in the demo servers
8 年之前
Mark Haines
b24d7ebd6e
Fix the cleanup script to use the right $DIR
8 年之前
manuroe
378a0f7a79
Federation demo start.sh: Fixed --no-rate-limit param in the script
9 年之前
Erik Johnston
476899295f
Change the way we do logging contexts so that they survive divergences
9 年之前
Mark Haines
2f1348f339
Write a default log_config when generating config
9 年之前
Mark Haines
74aaacf82a
Don't break when sizes or durations are given as integers
9 年之前
Mark Haines
1aa11cf7ce
Allow multiple config files, set up a default config before applying the config files
9 年之前
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 年之前
Erik Johnston
0775c62469
Fix --enable-registration flag to work if you don't give a value
9 年之前
Erik Johnston
a2a93a4fa7
Make demo script use --enable-registration
9 年之前
manuroe
5116946ae9
Allow registration in the HSes federation demo
9 年之前
Mark Haines
c81a19552f
Add ports back to demo/start.sh
9 年之前
Mark Haines
b19cf6a105
Wait for events if the incremental sync is empty and a timeout is given
9 年之前
Mark Haines
58691680b8
update .gitignore, set media-store-path in demo
9 年之前
Mark Haines
ff23e5ba37
remove demo webserver since synapse serves up the webclient itself
9 年之前
Mark Haines
dca3ba2f77
Determine webclient path by the python module it is contained in
9 年之前
Erik Johnston
af7ae048f8
Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer
9 年之前
manuroe
9e57ed2b1f
Added a param (--no-rate-limit) to demo/start.sh to disable the HS rate limit
9 年之前
Erik Johnston
0393e87519
Make the demo listen on both HTTP and HTTPS ports
9 年之前
Mark Haines
9ea1de432d
Fix homeserver config parsing
9 年之前