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] 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"