diff options
author | reivilibre <oliverw@matrix.org> | 2023-09-06 13:01:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 14:01:10 +0100 |
commit | e937e2111a45d0cb3ecc973f95dafafecb6e9c36 (patch) | |
tree | 2a776e522093526abe2309654fd7a2f68097a349 /docs | |
parent | Allow modules to delete rooms. (#15997) (diff) | |
download | synapse-e937e2111a45d0cb3ecc973f95dafafecb6e9c36.tar.xz |
Add the ability to use `G` (GiB) and `T` (TiB) suffixes in configuration options that refer to numbers of bytes. (#16219)
* Add more suffixes to `parse_size` * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/usage/configuration/config_documentation.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/usage/configuration/config_documentation.md b/docs/usage/configuration/config_documentation.md index 0b1725816e..97fd1beb39 100644 --- a/docs/usage/configuration/config_documentation.md +++ b/docs/usage/configuration/config_documentation.md @@ -25,8 +25,10 @@ messages from the database after 5 minutes, rather than 5 months. In addition, configuration options referring to size use the following suffixes: -* `M` = MiB, or 1,048,576 bytes * `K` = KiB, or 1024 bytes +* `M` = MiB, or 1,048,576 bytes +* `G` = GiB, or 1,073,741,824 bytes +* `T` = TiB, or 1,099,511,627,776 bytes For example, setting `max_avatar_size: 10M` means that Synapse will not accept files larger than 10,485,760 bytes for a user avatar. |