Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit ab2a615

Browse files
authored
Update configuration manual to document size-related suffixes (#12777)
1 parent 684feea commit ab2a615

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

changelog.d/12777.doc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Update configuration manual documentation to document size-related suffixes.
2+

docs/usage/configuration/config_documentation.md

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ followed by a letter. Letters have the following meanings:
2323
For example, setting `redaction_retention_period: 5m` would remove redacted
2424
messages from the database after 5 minutes, rather than 5 months.
2525

26+
In addition, configuration options referring to size use the following suffixes:
27+
28+
* `M` = MiB, or 1,048,576 bytes
29+
* `K` = KiB, or 1024 bytes
30+
31+
For example, setting `max_avatar_size: 10M` means that Synapse will not accept files larger than 10,485,760 bytes
32+
for a user avatar.
33+
2634
### YAML
2735
The configuration file is a [YAML](https://yaml.org/) file, which means that certain syntax rules
2836
apply if you want your config file to be read properly. A few helpful things to know:

0 commit comments

Comments
 (0)