瀏覽代碼

Do not generate a new Matrix Synapse config, if one already exists

Otherwise certains values in the config file,
such as `macaroon_secret_key`, would be regenerated,
which is not something that we want.

If `macaroon_secret_key` is regenerated, all users'
auth tokens will become invalid (effectively logging out
all users).
pull/6/head
Slavi Pantaleev 9 年之前
父節點
當前提交
887d14884e
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      roles/matrix-server/tasks/setup_synapse.yml

+ 6
- 0
roles/matrix-server/tasks/setup_synapse.yml 查看文件

@@ -12,6 +12,11 @@
docker_image:
name: "{{ docker_matrix_image }}"

- name: Check if a Matrix Synapse configuration exists
stat:
path: "{{ matrix_synapse_data_path }}/homeserver.yaml"
register: matrix_synapse_config_stat

- name: Generate initial Matrix config
docker_container:
name: matrix-config
@@ -25,6 +30,7 @@
user: "{{ matrix_user_uid }}:{{ matrix_user_gid }}"
volumes:
- "{{ matrix_synapse_data_path }}:/data"
when: "not matrix_synapse_config_stat.stat.exists"

- name: Augment Matrix config (configure SSL fullchain location)
lineinfile: "dest={{ matrix_synapse_data_path }}/homeserver.yaml"


Loading…
取消
儲存