summary refs log tree commit diff
path: root/synapse/config/_base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a regular HomeServerConfig object for unit testsRichard van der Hoff2019-03-191-1/+4
| | | | | | | 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.
* Allow passing --daemonize to workersErik Johnston2019-03-131-1/+7
|
* Include a default configuration file in the 'docs' directory. (#4791)Richard van der Hoff2019-03-041-11/+16
|
* fix self-signed cert notice from generate-configRichard van der Hoff2019-02-121-7/+2
| | | | fixes #4620
* Support ACME for certificate provisioning (#4384)Amber Brown2019-01-231-2/+2
|
* Add a script to generate a clean config file (#4315)Richard van der Hoff2018-12-221-13/+43
|
* Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵Amber Brown2018-10-201-62/+59
| | | | on py3) (#4068)
* run isortAmber Brown2018-07-091-1/+2
|
* Open config file in non-bytes modeAdrian Tschira2018-04-101-3/+3
| | | | | | | | | Nothing written into it is encoded, so it makes little sense, but it does break in python3 the way it was before. The variable names were adjusted to be less misleading. Signed-off-by: Adrian Tschira <nota@notafile.com>
* Merge pull request #3074 from NotAFile/fix-py3-printsRichard van der Hoff2018-04-091-5/+5
|\ | | | | use python3-compatible prints
| * use python3-compatible printsAdrian Tschira2018-04-061-5/+5
| |
* | Replace some type checks with six type checksAdrian Tschira2018-04-071-2/+4
|/ | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Improve error handling for missing files (#2551)Richard van der Hoff2017-10-171-10/+26
| | | | | | | | | | | `os.path.exists` doesn't allow us to distinguish between permissions errors and the path actually not existing, which repeatedly confuses people. It also means that we try to overwrite existing key files, which is super-confusing. (cf issues #2455, #2379). Use os.stat instead. Also, don't recomemnd the the use of --generate-config, which screws everything up if you're using debian (cf #2455).
* Add support for durations in minutesDaniel Dent2016-11-121-2/+3
|
* Add function to load config without generating itMark Haines2016-06-091-43/+104
| | | | | | | | | | | | | | | | Renames ``load_config`` to ``load_or_generate_config`` Adds a method called ``load_config`` that just loads the config. The main synapse.app.homeserver will continue to use ``load_or_generate_config`` to retain backwards compat. However new worker processes can use ``load_config`` to load the config avoiding some of the cruft needed to generate the config. As the new ``load_config`` method is expected to be used by new configs it removes support for the legacy commandline overrides that ``load_or_generate_config`` supports
* Use syntax that works on both py2.7 and py3Mark Haines2016-03-071-1/+1
|
* Error if macaroon key is missing from configDaniel Wagner-Hall2016-02-051-13/+22
| | | | | | | | | | | | | Currently we store all access tokens in the DB, and fall back to that check if we can't validate the macaroon, so our fallback works here, but for guests, their macaroons don't get persisted, so we don't get to find them in the database. Each restart, we generate a new ephemeral key, so guests lose access after each server restart. I tried to fix up the config stuff to be less insane, but gave up, so instead I bolt on yet another piece of custom one-off insanity. Also, add some basic tests for config generation and loading.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* CommentErik Johnston2015-11-191-0/+2
|
* Split out text for missing config options.Erik Johnston2015-11-181-16/+26
| | | | | This allows packages to more easily override the default messages to include package specific options.
* Fix race creating directoriesDaniel Wagner-Hall2015-11-121-1/+5
|
* Front-load spacesDaniel Wagner-Hall2015-09-221-7/+7
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-4/+41
| | | | | | | | | | 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.
* Lists use 'append'Erik Johnston2015-09-021-1/+1
|
* Actually add config pathErik Johnston2015-08-281-0/+2
|
* Merge pull request #250 from matrix-org/erikj/generated_directoryErik Johnston2015-08-251-2/+15
|\ | | | | Add config option to specify where generated files should be dumped
| * Update config docErik Johnston2015-08-251-1/+2
| |
| * s/--generated-directory/--keys-directory/Erik Johnston2015-08-251-7/+7
| |
| * Add config option to specify where generated files should be dumpedErik Johnston2015-08-251-2/+14
| |
* | Warn if we encounter unexpected files in config directoriesErik Johnston2015-08-251-7/+17
|/
* Allow specifying directories as config filesErik Johnston2015-08-251-6/+24
|
* Fix the --generate-keys option. Make it do the same thing as ↵Mark Haines2015-08-121-45/+36
| | | | --generate-config does when the config file exists, but without printing a warning
* Add a --generate-keys optionPaul "LeoNerd" Evans2015-08-071-0/+9
|
* Correct -H SERVER_NAME in config-missing complaint messagePaul "LeoNerd" Evans2015-06-161-2/+2
|
* Merge branch 'develop' of github.com:matrix-org/synapse into developDavid Baker2015-05-071-18/+29
|\
| * Fix the --help option for synapseMark Haines2015-05-051-18/+29
| |
* | TypoDavid Baker2015-05-071-1/+1
|/
* Allow generate-config to run against an existing config file to generate ↵Mark Haines2015-05-011-12/+23
| | | | default keys
* Write a default log_config when generating configMark Haines2015-04-301-1/+2
|
* Don't break when sizes or durations are given as integersMark Haines2015-04-301-9/+12
|
* Allow multiple config files, set up a default config before applying the ↵Mark Haines2015-04-301-21/+37
| | | | config files
* Manually generate the default config yaml, remove most of the commandline ↵Mark Haines2015-04-301-65/+76
| | | | 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
* Merge branch 'develop' into key_distributionMark Haines2015-04-291-3/+4
|\ | | | | | | | | Conflicts: synapse/config/homeserver.py
| * Output vim style mode markers into the yaml config fileMark Haines2015-04-281-3/+4
| |
* | Add config for setting the perspective serversMark Haines2015-04-241-2/+2
| |
* | Add a config file for perspective serversMark Haines2015-04-241-0/+11
|/
* Add a cache for get_eventMark Haines2015-02-111-0/+10
|
* Convert directory paths to absolute paths before daemonizingMark Haines2015-02-091-2/+3
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Merge branch 'hotfixes-v0.5.4' of github.com:matrix-org/synapse into developErik Johnston2014-12-131-2/+2
|\
| * Fix bug while generating the error message when a file path specified in the ↵Erik Johnston2014-12-131-2/+2
| | | | | | | | config doesn't exist
* | Get uploads working with new media repoMark Haines2014-12-021-0/+14
|/
* Be more helpful and tell the user how to generate a config too.David Baker2014-11-141-1/+4
|
* Adding --generate-config will not help if the user has not specified a ↵David Baker2014-11-141-1/+1
| | | | config file.
* Fix pep8 warningsMark Haines2014-10-301-6/+13
|
* Fix ncorrect ports in documentation and add notes on how generate-config ↵David Baker2014-10-021-1/+2
| | | | | | also generates certs bound to whatever hostname you give with --generate-config. SYN-87 #resolved
* Update README setup instructions to be correct. Make synapse spit out ↵David Baker2014-10-021-0/+1
| | | | explanatory note when generating config to tell people to look at it and customise it.
* Added a TODO note about YAML modeline for editorsPaul "LeoNerd" Evans2014-09-031-0/+3
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Add copyright notices and fix pyflakes errorsMark Haines2014-09-031-2/+0
|
* os.makedirs is almost but not entirely unlike mkdir -pMark Haines2014-09-021-1/+2
|
* Make the config directory if the directory doesn't exisit when generating configMark Haines2014-09-021-0/+1
|
* More helpful error messages for missing configMark Haines2014-09-021-2/+23
|
* Use yaml for config fileMark Haines2014-09-011-11/+6
|
* Fix homeserver config parsingMark Haines2014-09-011-5/+18
|
* Add config tree to synapse. Add support for reading config from a fileMark Haines2014-08-311-0/+99