summary refs log tree commit diff
path: root/scripts-dev (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-19Use a regular HomeServerConfig object for unit testsRichard van der Hoff3-13/+25
Rather than using a Mock for the homeserver config, use a genuine HomeServerConfig object. This makes for a more realistic test, and means that we don't have to keep remembering to add things to the mock config every time we add a new config setting.
2019-03-19Fix resource limits testsRichard van der Hoff1-2/+5
Make sure that we have a `server_notices_mxid` set, given that we are relying on it.
2019-03-19Fix registration testRichard van der Hoff1-1/+2
* Set allow_guest_access = True, since we rely on it * config doesn't have a `hostname` attribute; it is `server_name`
2019-03-19Fix email testRichard van der Hoff1-0/+2
The Mailer expects the config object to have `email_smtp_pass` and `email_riot_base_url` attributes (and it won't by default, because the default config impl doesn't set any of the attributes unless email_enable_notifs is set).
2019-03-19fix test_auto_create_auto_join_where_no_consent (#4886)Neil Johnson5-5/+39
2019-03-19Enforce hs_disabled_message correctlyRichard van der Hoff3-3/+24
Fixes a bug where hs_disabled_message was not enforced for 3pid-based requests if there was no server_notices_mxid configured.
2019-03-19Fix user directory background update (#4887)Erik Johnston2-1/+2
2019-03-19Repoint docs for federation (#4881)Michael Kaye2-1/+2
2019-03-19Comment out most options in the generated config. (#4863)Richard van der Hoff16-171/+230
Make it so that most options in the config are optional, and commented out in the generated config. The reasons this is a good thing are as follows: * If we decide that we should change the default for an option, we can do so, and only those admins that have deliberately chosen to override that option will be stuck on the old setting. * It moves us towards a point where we can get rid of the super-surprising feature of synapse where the default settings for the config come from the generated yaml. * It makes setting up a test config for unit testing an order of magnitude easier (see forthcoming PR). * It makes the generated config more consistent, and hopefully easier for users to understand.
2019-03-19Migrate the user directory initial population to a background task (#4864)Amber Brown8-301/+405
2019-03-18Add ratelimiting on failed login attempts (#4865)Brendan Abolivier6-5/+86
2019-03-15Add ratelimiting on login (#4821)Brendan Abolivier11-37/+259
Add two ratelimiters on login (per-IP address and per-userID).
2019-03-15Add systemd setup that supports workers (#4662)Luca Corbatto6-0/+205
This setup is a way to manage workers with systemd. It does however not require workers. You can use this setup without workers. You just have to make sure that the homeserver is forking and writes its PID file to the location the service is looking in. The currently distributed setup in the debian package does not work in conjunction with workers. * Adds changelog * Lets systemd handle the forking Sets all services to `type=simple` and disables daemonizing on the synapse side. * Formats readme to 80 columns per line * Allows for full restart of all workers * Changes README to reflect the new setup * Adds dot to end of changelog file * Removes surplus word Co-Authored-By: targodan <targodan@users.noreply.github.com> * Adds missing word Co-Authored-By: targodan <targodan@users.noreply.github.com> * Fixes linebreak Co-Authored-By: targodan <targodan@users.noreply.github.com> * Fixes unit type
2019-03-15fix some typos in federate.mdRichard van der Hoff1-4/+2
2019-03-15