Jonathan de Jong
4b965c862d
Remove redundant "coding: utf-8" lines ( #9786 )
Part of #9744
Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now.
`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
vor 3 Jahren
Jonathan de Jong
27d2820c33
Enable flake8-bugbear, but disable most checks. ( #9499 )
* Adds B00 to ignored checks.
* Fixes remaining issues.
vor 3 Jahren
Patrick Cloke
c619253db8
Stop sub-classing object ( #8249 )
vor 3 Jahren
Richard van der Hoff
66a564c859
Fix some DETECTED VIOLATIONS in the config file ( #7550 )
consistency ftw
vor 4 Jahren
Andrew Morgan
d9f29f8dae
Fix a small typo in the `metrics_flags` config option. ( #7171 )
vor 4 Jahren
Andrew Morgan
409c62b27b
Add config linting script that checks for bool casing ( #6203 )
Add a linting script that enforces all boolean values in the default config be lowercase.
This has annoyed me for a while so I decided to fix it.
vor 4 Jahren
Amber Brown
f743108a94
Refactor HomeserverConfig so it can be typechecked ( #6137 )
vor 4 Jahren
Sorunome
dd2e5b0038
add report_stats_endpoint config option ( #6012 )
This PR adds the optional `report_stats_endpoint` to configure where stats are reported to, if enabled.
vor 4 Jahren
Jorik Schellekens
6604b64fae
Check dependencies on setup in the nicer way. ( #5989 )
vor 4 Jahren
Amber Brown
55d5b3af88
Servers-known-about statistic ( #5981 )
vor 4 Jahren
Richard van der Hoff
16b52642e2
Don't load the generated config as the default.
It's too confusing.
vor 4 Jahren
Richard van der Hoff
c3c6b00d95
Pass config_dir_path and data_dir_path into Config.read_config. ( #5522 )
* Pull config_dir_path and data_dir_path calculation out of read_config_files
* Pass config_dir_path and data_dir_path into read_config
vor 4 Jahren
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
vor 4 Jahren
Richard van der Hoff
fd463b4f5d
Comment out most options in the generated config. ( #4863 )
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.
vor 5 Jahren
Erik Johnston
3d672fec51
Fixup generated metrics config
vor 5 Jahren
Richard van der Hoff
5f9bdf90fe
Attempt to make default config more consistent
The general idea here is that config examples should just have a hash and no
extraneous whitespace, both to make it easier for people who don't understand
yaml, and to make the examples stand out from the comments.
vor 5 Jahren
Erik Johnston
d328a93b51
Fixup error handling and message
vor 5 Jahren
Erik Johnston
dc5efc92a8
Fixup
vor 5 Jahren
Erik Johnston
6cb415b63f
Fixup comments and add warning
vor 5 Jahren
Erik Johnston
6a8f902edb
Raise an appropriate error message if sentry_sdk missing
vor 5 Jahren
Erik Johnston
ef2228c890
Basic sentry integration
vor 5 Jahren
Richard van der Hoff
9c2af7b2c5
Add a script to generate a clean config file ( #4315 )
vor 5 Jahren
Matthew Hodgson
6c28ac260c
copyrights
vor 8 Jahren
Daniel Wagner-Hall
7213588083
Implement configurable stats reporting
SYN-287
This requires that HS owners either opt in or out of stats reporting.
When --generate-config is passed, --report-stats must be specified
If an already-generated config is used, and doesn't have the
report_stats key, it is requested to be set.
vor 8 Jahren
Erik Johnston
a005b7269a
Add backwards compat support for metrics, manhole and webclient config options
vor 9 Jahren
Erik Johnston
1ce1509989
s/metric_interface/metric_bind_host/
vor 9 Jahren
Erik Johnston
59a0682f3e
Enable changing the interface the metrics listener binds to
vor 9 Jahren
Mark Haines
95cbfee8ae
Update metrics.py
vor 9 Jahren
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
vor 9 Jahren
Paul "LeoNerd" Evans
b98b4c135d
Option to serve metrics from their own localhost-only TCP port instead of muxed on the main listener
vor 9 Jahren
Paul "LeoNerd" Evans
5b6e11d560
Commandline option to enable metrics system
vor 9 Jahren
Erik Johnston
81163f822e
Add config option to disable registration.
vor 9 Jahren
Kegan Dougal
14d413752b
Fix newline on __init__
vor 9 Jahren
Kegan Dougal
8beb613916
Add newline to EOF
vor 9 Jahren
Kegan Dougal
c7783d6fee
Notify ASes for events sent by other users in a room which an AS user is a part of.
vor 9 Jahren
Kegan Dougal
fa8e6ff900
Add stub application services REST API.
vor 9 Jahren
Paul "LeoNerd" Evans
8d7accb28f
Initial minimal attempt at /user/:user_id/filter API - in-memory storage, no actual filter implementation
vor 9 Jahren
Mark Haines
7b814d3f7f
Add client v2_alpha resource to synapse server resource tree
vor 9 Jahren
Mark Haines
adb04b1e57
Update copyright notices
vor 9 Jahren
Matthew Hodgson
8a7c1d6a00
fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.
vor 9 Jahren
Matthew Hodgson
f98e6380f1
add in whitespace after copyright statements to improve legibility
vor 9 Jahren
matrix.org
4f475c7697
Reference Matrix Home Server
vor 9 Jahren