Просмотр исходного кода

remove unnecessary configurations

pull/3969/head
Virkkunen 1 год назад
committed by Slavi Pantaleev
Родитель
Сommit
5e03006c5d
2 измененных файлов: 4 добавлений и 15 удалений
  1. +2
    -7
      roles/custom/matrix-conduwuit/defaults/main.yml
  2. +2
    -8
      roles/custom/matrix-conduwuit/templates/conduwuit.toml.j2

+ 2
- 7
roles/custom/matrix-conduwuit/defaults/main.yml Просмотреть файл

@@ -120,18 +120,13 @@ matrix_conduwuit_template_conduwuit_config: "{{ role_path }}/templates/conduwuit
# Max size for uploads, in bytes # Max size for uploads, in bytes
matrix_conduwuit_max_request_size: 20_000_000 matrix_conduwuit_max_request_size: 20_000_000


# Maximum number of open files for conduwuit's embedded RocksDB database
# See https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide#tuning-other-options
# By default, conduwuit uses a relatively low value of 20.
matrix_conduwuit_rocksdb_max_open_files: 64

# Enables registration. If set to false, no users can register on this server. # Enables registration. If set to false, no users can register on this server.
matrix_conduwuit_allow_registration: false matrix_conduwuit_allow_registration: false


matrix_conduwuit_allow_federation: true matrix_conduwuit_allow_federation: true


# Enable the display name lightning bolt on registration.
matrix_conduwuit_enable_lightning_bolt: true
# The display name suffix on registration. Change to '' to disable.
matrix_conduwuit_new_user_displayname_suffix: ''


matrix_conduwuit_trusted_servers: matrix_conduwuit_trusted_servers:
- "matrix.org" - "matrix.org"


+ 2
- 8
roles/custom/matrix-conduwuit/templates/conduwuit.toml.j2 Просмотреть файл

@@ -23,7 +23,6 @@ server_name = "{{ matrix_domain }}"


# This is the only directory where Conduwuit will save its data # This is the only directory where Conduwuit will save its data
database_path = "/var/lib/matrix-conduwuit/" database_path = "/var/lib/matrix-conduwuit/"
database_backend = "rocksdb"


# The port Conduwuit will be running on. You need to set up a reverse proxy in # The port Conduwuit will be running on. You need to set up a reverse proxy in
# your web server (e.g. apache or nginx), so all requests to /_matrix on port # your web server (e.g. apache or nginx), so all requests to /_matrix on port
@@ -34,21 +33,16 @@ port = {{ matrix_conduwuit_port_number }}
# Max size for uploads # Max size for uploads
max_request_size = {{ matrix_conduwuit_max_request_size }} max_request_size = {{ matrix_conduwuit_max_request_size }}


# Max number of open files for the RocksDB database
rocksdb_max_open_files = {{ matrix_conduwuit_rocksdb_max_open_files }}

# Enables registration. If set to false, no users can register on this server. # Enables registration. If set to false, no users can register on this server.
allow_registration = {{ matrix_conduwuit_allow_registration | to_json }} allow_registration = {{ matrix_conduwuit_allow_registration | to_json }}


allow_federation = {{ matrix_conduwuit_allow_federation | to_json }} allow_federation = {{ matrix_conduwuit_allow_federation | to_json }}


# Enable the display name lightning bolt on registration.
enable_lightning_bolt = {{ matrix_conduwuit_enable_lightning_bolt | to_json }}
# Enable the display name suffix on registration.
new_user_displayname_suffix = {{ matrix_conduwuit_new_user_displayname_suffix | to_json }}


trusted_servers = {{ matrix_conduwuit_trusted_servers | to_json }} trusted_servers = {{ matrix_conduwuit_trusted_servers | to_json }}


max_concurrent_requests = {{ matrix_conduwuit_max_concurrent_requests }}

log = "info,state_res=warn,rocket=off,_=off,sled=off" log = "info,state_res=warn,rocket=off,_=off,sled=off"


address = "0.0.0.0" address = "0.0.0.0"


Загрузка…
Отмена
Сохранить