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

Fixes from a first trial run

pull/2002/head
Charles Wright 3 лет назад
Родитель
Сommit
2d7c427504
3 измененных файлов: 8 добавлений и 5 удалений
  1. +3
    -1
      roles/matrix-conduit/defaults/main.yml
  2. +3
    -3
      roles/matrix-conduit/templates/conduit/conduit.toml.j2
  3. +2
    -1
      roles/matrix-conduit/templates/conduit/systemd/matrix-conduit.service.j2

+ 3
- 1
roles/matrix-conduit/defaults/main.yml Просмотреть файл

@@ -11,10 +11,12 @@ matrix_conduit_docker_image_force_pull: "{{ matrix_conduit_docker_image.endswith

matrix_conduit_base_path: "{{ matrix_base_data_path }}/conduit"
matrix_conduit_config_dir_path: "{{ matrix_conduit_base_path }}/config"
matrix_conduit_storage_path: "{{ matrix_conduit_base_path }}/storage"
matrix_conduit_data_dir_path: "{{ matrix_conduit_base_path }}/storage"

matrix_conduit_port_number: 6167

matrix_conduit_tmp_directory_size_mb: 500

# List of systemd services that matrix-conduit.service depends on
matrix_conduit_systemd_required_services_list: ["docker.service"]



+ 3
- 3
roles/matrix-conduit/templates/conduit/conduit.toml.j2 Просмотреть файл

@@ -35,12 +35,12 @@ port = {{ matrix_conduit_port_number }}
max_request_size = {{ matrix_conduit_max_request_size }}

# Enables registration. If set to false, no users can register on this server.
allow_registration = {{ matrix_conduit_allow_registration }}
allow_registration = {{ matrix_conduit_allow_registration | to_json | replace("\"", "") }}

allow_federation = {{ matrix_conduit_allow_federation }}
allow_federation = {{ matrix_conduit_allow_federation | to_json | replace("\"", "") }}

# Enable the display name lightning bolt on registration.
enable_lightning_bolt = {{ matrix_conduit_enable_lightning_bolt }}
enable_lightning_bolt = {{ matrix_conduit_enable_lightning_bolt | to_json | replace("\"", "") }}

trusted_servers = {{ matrix_conduit_trusted_servers }}



+ 2
- 1
roles/matrix-conduit/templates/conduit/systemd/matrix-conduit.service.j2 Просмотреть файл

@@ -19,8 +19,9 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-conduit \
--read-only \
--tmpfs=/tmp:rw,noexec,nosuid,size={{ matrix_conduit_tmp_directory_size_mb }}m \
--network={{ matrix_docker_network }} \
--env CONDUIT_CONFIG=/etc/matrix-conduit/conduit.toml \
--mount type=bind,src={{ matrix_conduit_data_dir_path }},dst=/var/lib/matrix-conduit \
--mount type=bind,src={{ matrix_conduit_config_dir_path }},dst=/etc/matrix-conduit,ro \
--mount type=bind,src={{ matrix_conduit_data_dir_path }},dst=/var/lib/conduit \
{% for arg in matrix_conduit_container_extra_arguments %}
{{ arg }} \
{% endfor %}


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