Commit graph

171 commits

Author SHA1 Message Date
Unrud
8e0a933423 Cosmetics 2022-01-18 22:44:32 +01:00
Lauri Tirkkonen
035ff2b546 config & rights: use open() for better error messages
ConfigParser().read() doesn't differentiate between different types of
failure to read files, causing eg. "No such file" to be logged in all
cases, for example if permissions are insufficient. fix that by using
open() and ConfigParser().read_file() instead.
2022-01-18 22:44:32 +01:00
Unrud
6ff0be84e4 Change name in file header 2021-12-20 21:21:21 +01:00
Unrud
b6405e11cb Rename opposite to opposite_aliases 2021-12-20 21:21:20 +01:00
Unrud
91e88091fc Don't modify DEFAULT_CONFIG_SCHEMA 2021-12-20 21:21:20 +01:00
Unrud
c93d7b8715 More type hints 2021-12-20 21:21:20 +01:00
Unrud
23a2989b77 Enable static type checking 2021-12-20 21:21:20 +01:00
Unrud
02a9d749a2 Allow float for server->timeout setting 2021-12-20 21:21:20 +01:00
Unrud
dd3a3b17d4 Don't modify global constants 2021-12-20 21:21:20 +01:00
Unrud
c89cd67065 Improve log messages
Log failed login attempts with remote host as warning (closes #1104)
Add component UID to log message about invalid recurrence rules (reference #602)
Use "forwarded for" instead of "forwarded by" for remote host
2021-12-20 21:18:32 +01:00
Unrud
6158fb961b Trim all (ASCII) whitespace characters 2020-05-19 07:03:58 +02:00
Unrud
1f8cb8ed89 Remove unnecessary string trimming 2020-05-19 06:52:01 +02:00
Unrud
9c622b57d5 Allow callable in configuration for plugin.type
Example:

```python3
\# Load default configuration
my_config = config.load()

\# Pass a class directly
my_config.update({"auth": {"type": MyAuth}})

\# Pass an object directly
my_rights = MyRights()
my_config.update({"rights": {"type": lambda config: my_rights}})

app = Application(my_config)
````
2020-04-09 22:01:35 +02:00
Unrud
180e96b332 Move internal options to other sections 2020-02-19 09:50:36 +01:00
Unrud
8e3465b5d4 Specify option type in _allow_extra 2020-02-19 09:50:30 +01:00
Unrud
5371be2b39 Mark internal configuration options and sections with underscore 2020-02-19 09:50:27 +01:00
Unrud
0bda1f4c16 Improve error messages 2020-02-19 09:50:25 +01:00
Unrud
66fabbead9 Use socket pairs to communicate with client threads 2020-02-19 09:50:19 +01:00
Unrud
cc22927353 Bind sockets for IPv4 and IPv6 2020-02-19 09:49:56 +01:00
Unrud
a872b633fb Refactor: Remove method Configuration.log_config_sources 2020-02-19 09:48:42 +01:00
Unrud
11ea3cc7a4 Remove settings for TLS protocol and ciphers
Use the recommended default settings instead.
2020-02-19 09:48:38 +01:00
Unrud
4a43b17840 Remove reverse DNS lookup
It wasn't working for years because the functionality was removed from http.server.
Nobody complained.
2020-02-19 09:48:34 +01:00
Unrud
6108d8d759 Remove unsecure methods from htpasswd and make md5 default 2020-01-19 21:07:54 +01:00
Unrud
0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud
41a91f7da1 Optional config source description 2020-01-15 03:19:44 +01:00
Unrud
a8a1fc470b Allow boolean raw_value for boolean config entries 2020-01-15 00:33:21 +01:00
Unrud
2e4924a0da Improve documentation 2020-01-13 15:51:10 +01:00
Unrud
88a0af8ba1 Improve documentation 2020-01-12 23:32:28 +01:00
Unrud
d3d11d0ec8 Report internal config sources 2020-01-12 23:32:27 +01:00
Unrud
967b6a463d Remove unnecessary optimizations 2020-01-12 23:32:27 +01:00
Unrud
caf5ff1080 Change default value for external users 2020-01-12 23:32:26 +01:00
Unrud
a7f4ffa7d4 Rename Configuration.inspect to log_config_sources
The old name was misleading.
2020-01-12 23:32:25 +01:00
Unrud
b7590f8c84 Rework configuration 2019-06-17 04:18:09 +02:00
Unrud
63e6d091b9 Update copyright 2019-06-17 04:13:24 +02:00
Unrud
515a5c9d18 cosmetics 2018-09-09 14:58:43 +02:00
Unrud
7002d06f4d remove unused extra_config argument 2018-09-09 07:28:35 +02:00
Unrud
5e0a387ed9 remove whitespace before email 2018-09-04 03:33:47 +02:00
Unrud
6c12b13ec1 reduce default parallel connections to 8 2018-08-28 16:19:48 +02:00
Unrud
8869b34470 refactor 2018-08-28 16:19:43 +02:00
Unrud
8281769edf Move filesystem_fsync config from section storage to internal 2018-08-18 12:56:39 +02:00
Unrud
4282ea46e4 Add section for internal configuration 2018-08-18 12:56:38 +02:00
Unrud
59f7104dce Replace option "debug" with "level" in "logging" 2018-08-16 08:00:02 +02:00
Unrud
6b281e1726 Move realm config from server to auth 2018-08-16 08:00:01 +02:00
Unrud
6f15cddfbc Don't pollute WSGI environ with OS environ 2018-08-16 07:59:59 +02:00
Unrud
e5e13faa7c Remove daemonization 2018-08-16 07:59:59 +02:00
Unrud
e96410c6e7 Only support file based locking 2018-08-16 07:59:58 +02:00
Unrud
54b9995e22 Use module-wide logger and remove logging config 2018-08-16 07:59:55 +02:00
Unrud
3d2ffe0c8e Raise default limits 2018-08-14 20:08:42 +02:00
Frank Sachsenheim
50d3d01ea3 Uses absoulte imports as recommended in PEP-8 2018-04-20 16:03:36 +02:00
Unrud
276de4fd3a Allow additional config options for external plugins 2017-06-21 09:54:33 +02:00