From 03cde007bc793fa9f9edf96cd018f08469f402a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Mon, 19 Oct 2020 10:01:00 +0200 Subject: [PATCH 1/2] Bump Matrix max upload size to a whopping 50 MB --- roles/docker/files/configs/matrix/homeserver.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # -- 2.43.4 From 8d88016efd71216d11833644d9180552447d6aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Fri, 27 Nov 2020 10:23:58 +0100 Subject: [PATCH 2/2] Matrix: up nginx client_max_body_size to 50MB Then it's consistent with max_upload_size (sort of - modulo overhead in http) --- roles/docker/files/configs/matrix/vhost-matrix | 3 ++- roles/docker/files/configs/matrix/vhost-riot | 1 + roles/docker/tasks/services/matrix_riot.yml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 roles/docker/files/configs/matrix/vhost-riot 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" -- 2.43.4