diff --git a/roles/docker/files/configs/matrix/homeserver.yaml b/roles/docker/files/configs/matrix/homeserver.yaml index 3a4eca4..a4dc01a 100644 --- a/roles/docker/files/configs/matrix/homeserver.yaml +++ b/roles/docker/files/configs/matrix/homeserver.yaml @@ -415,7 +415,7 @@ uploads_path: "/data/uploads" # The largest allowed upload size in bytes # -max_upload_size: "10M" +max_upload_size: "50M" # Maximum number of pixels that will be thumbnailed # diff --git a/roles/docker/files/configs/matrix/vhost-matrix b/roles/docker/files/configs/matrix/vhost-matrix index 36b8434..a597770 100644 --- a/roles/docker/files/configs/matrix/vhost-matrix +++ b/roles/docker/files/configs/matrix/vhost-matrix @@ -1 +1,2 @@ -listen 8008; \ No newline at end of file +listen 8008; +client_max_body_size 50M; # default is 1M diff --git a/roles/docker/files/configs/matrix/vhost-riot b/roles/docker/files/configs/matrix/vhost-riot new file mode 100644 index 0000000..66b77ed --- /dev/null +++ b/roles/docker/files/configs/matrix/vhost-riot @@ -0,0 +1 @@ +client_max_body_size 50M; # default is 1M diff --git a/roles/docker/tasks/services/matrix_riot.yml b/roles/docker/tasks/services/matrix_riot.yml index c78e588..931f747 100644 --- a/roles/docker/tasks/services/matrix_riot.yml +++ b/roles/docker/tasks/services/matrix_riot.yml @@ -46,6 +46,11 @@ src: files/configs/matrix/vhost-matrix dest: "{{ nginx.volume_folder }}/vhost/{{ matrix.domain }}" +- name: upload vhost config for riot domain + template: + src: files/configs/matrix/vhost-riot + dest: "{{ nginx.volume_folder }}/vhost/{{ domain.domain }}" + - name: upload homeserver.yaml template: src: "files/configs/matrix/homeserver.yaml"