1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-04-22 14:10:16 +03:00

Merge branch 'next' into 'next'

Update docs/configuration.md default, link with src/config/mod.rs

See merge request 
This commit is contained in:
Herman Rimm 2025-04-09 17:00:18 +00:00
commit c4d9b1d96d
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Conduit's configuration file is divided into the following sections:
## Global
The `global` section contains the following fields:
As per [config/mod.rs](https://gitlab.com/famedly/conduit/-/blob/next/src/config/mod.rs), the `global` section contains the following fields:
> **Note:** The `*` symbol indicates that the field is required, and the values in **parentheses** are the possible values
@ -42,7 +42,7 @@ The `global` section contains the following fields:
| `allow_registration` | `boolean` | Opens your homeserver to public registration | `false` |
| `registration_token` | `string` | The token users need to have when registering to your homeserver | N/A |
| `allow_encryption` | `boolean` | Allow users to enable encryption in their rooms | `true` |
| `allow_federation` | `boolean` | Allow federation with other servers | `true` |
| `allow_federation` | `boolean` | Allow federation with other servers | `false` |
| `allow_room_creation` | `boolean` | Allow users to create rooms | `true` |
| `allow_unstable_room_versions` | `boolean` | Allow users to create and join rooms with unstable versions | `true` |
| `default_room_version` | `string` | The default room version (`"6"`-`"10"`)| `"10"` |

View file

@ -13,6 +13,7 @@ mod proxy;
use self::proxy::ProxyConfig;
// Make sure to update docs/configuration.md accordingly.
#[derive(Clone, Debug, Deserialize)]
pub struct Config {
#[serde(default = "default_address")]