From 73c90e95139a092f2b2755149e926ade9261fb1a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 23 Sep 2019 18:08:33 +0300 Subject: [PATCH] Try to make Synapse config/key generation respect uid/gid Attempt at fixing #268 (Github Issue) --- roles/matrix-synapse/tasks/synapse/setup_install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/matrix-synapse/tasks/synapse/setup_install.yml b/roles/matrix-synapse/tasks/synapse/setup_install.yml index ce1832bd2..88fb0049c 100644 --- a/roles/matrix-synapse/tasks/synapse/setup_install.yml +++ b/roles/matrix-synapse/tasks/synapse/setup_install.yml @@ -45,6 +45,8 @@ --user={{ matrix_user_uid }}:{{ matrix_user_gid }} --cap-drop=ALL -v {{ matrix_synapse_config_dir_path }}:/data + -e UID={{ matrix_user_uid }} + -e GID={{ matrix_user_gid }} -e SYNAPSE_CONFIG_PATH=/data/homeserver.yaml -e SYNAPSE_SERVER_NAME={{ matrix_server_fqn_matrix }} -e SYNAPSE_REPORT_STATS=no