mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 04:37:36 +01:00
Add support for configuring max_upload_size
This commit is contained in:
parent
b046052aed
commit
2bb8bb96d4
@ -44,4 +44,6 @@ matrix_services_restart_cron_time_definition: "15 4 3 * *"
|
||||
matrix_coturn_turn_udp_min_port: 49152
|
||||
matrix_coturn_turn_udp_max_port: 49172
|
||||
|
||||
matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
|
||||
matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
|
||||
|
||||
matrix_max_upload_size_mb: 10
|
@ -101,6 +101,12 @@
|
||||
- {'variable': 'max-port', 'value': "{{ matrix_coturn_turn_udp_max_port }}"}
|
||||
- {'variable': 'external-ip', 'value': "{{ matrix_coturn_turn_external_ip_address }}"}
|
||||
|
||||
- name: Augment Matrix config (set max upload size)
|
||||
lineinfile: "dest={{ matrix_synapse_data_path }}/homeserver.yaml"
|
||||
args:
|
||||
regexp: "^max_upload_size:"
|
||||
line: 'max_upload_size: "{{ matrix_max_upload_size_mb }}M"'
|
||||
|
||||
- name: Allow access to Matrix ports in firewalld
|
||||
firewalld:
|
||||
port: "{{ item }}"
|
||||
|
@ -34,10 +34,8 @@ server {
|
||||
proxy_pass http://synapse:8008;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
|
||||
# These are intentionally large.
|
||||
# Note that Synapse enforces its own limits, which are smaller.
|
||||
client_body_buffer_size 25M;
|
||||
client_max_body_size 100M;
|
||||
client_max_body_size {{ matrix_max_upload_size_mb }}M;
|
||||
proxy_max_temp_file_size 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user