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

Commit 9dcf289

Browse files
bumpsoogirlbossceo
authored andcommitted
(doc): Update docker-compose.yml and conduwuit-example.toml
The server cannot start without a registration token when registration is configured Signed-off-by: bumpsoo <[email protected]>
1 parent d860610 commit 9dcf289

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

Diff for: conduwuit-example.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,16 @@
389389
#
390390
#allow_registration = false
391391

392-
# This item is undocumented. Please contribute documentation for it.
392+
# Enabling this setting opens registration to anyone without restrictions.
393+
# This makes your server vulnerable to abuse
393394
#
394395
#yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = false
395396

396397
# A static registration token that new users will have to provide when
397398
# creating an account. If unset and `allow_registration` is true,
398-
# registration is open without any condition.
399+
# you must set
400+
# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
401+
# to true to allow open registration without any conditions.
399402
#
400403
# YOU NEED TO EDIT THIS OR USE registration_token_file.
401404
#

Diff for: docs/deploying/docker-compose.for-traefik.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
CONDUWUIT_PORT: 6167 # should match the loadbalancer traefik label
1818
CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
1919
CONDUWUIT_ALLOW_REGISTRATION: 'true'
20+
CONDUWUIT_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed.
21+
#CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
2022
CONDUWUIT_ALLOW_FEDERATION: 'true'
2123
CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
2224
CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]'

Diff for: docs/deploying/docker-compose.with-caddy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ services:
3333
CONDUWUIT_PORT: 6167
3434
CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
3535
CONDUWUIT_ALLOW_REGISTRATION: 'true'
36+
CONDUWUIT_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed.
37+
#CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
3638
CONDUWUIT_ALLOW_FEDERATION: 'true'
3739
CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
3840
CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]'

Diff for: docs/deploying/docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
CONDUWUIT_PORT: 6167
1818
CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
1919
CONDUWUIT_ALLOW_REGISTRATION: 'true'
20+
CONDUWUIT_REGISTRATION_TOKEN: 'YOUR_TOKEN' # A registration token is required when registration is allowed.
21+
#CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
2022
CONDUWUIT_ALLOW_FEDERATION: 'true'
2123
CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
2224
CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]'

Diff for: src/core/config/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,16 @@ pub struct Config {
492492
#[serde(default)]
493493
pub allow_registration: bool,
494494

495+
/// Enabling this setting opens registration to anyone without restrictions.
496+
/// This makes your server vulnerable to abuse
495497
#[serde(default)]
496498
pub yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse: bool,
497499

498500
/// A static registration token that new users will have to provide when
499501
/// creating an account. If unset and `allow_registration` is true,
500-
/// registration is open without any condition.
502+
/// you must set
503+
/// `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`
504+
/// to true to allow open registration without any conditions.
501505
///
502506
/// YOU NEED TO EDIT THIS OR USE registration_token_file.
503507
///

0 commit comments

Comments
 (0)