mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented flexible upload limits for wordpress and matrix :)
This commit is contained in:
@@ -39,6 +39,7 @@ csp:
|
||||
script-src-elem:
|
||||
- "element.{{ primary_domain }}"
|
||||
- "https://cdn.jsdelivr.net"
|
||||
|
||||
plugins:
|
||||
# You need to enable them in the inventory file
|
||||
chatgpt: false
|
||||
@@ -50,6 +51,8 @@ plugins:
|
||||
telegram: false
|
||||
whatsapp: false
|
||||
|
||||
client_max_body_size: "15M"
|
||||
|
||||
domains:
|
||||
canonical:
|
||||
synapse: "matrix.{{ primary_domain }}"
|
||||
|
@@ -15,4 +15,6 @@ server {
|
||||
{% include 'roles/srv-web-7-7-inj-compose/templates/server.conf.j2'%}
|
||||
|
||||
{% include 'roles/srv-proxy-7-4-core/templates/location/html.conf.j2' %}
|
||||
|
||||
{% include 'roles/srv-proxy-7-4-core/templates/location/upload.conf.j2' %}
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
server_name: "{{applications | get_app_conf(application_id, 'server_name', True)}}"
|
||||
pid_file: /data/homeserver.pid
|
||||
max_upload_size: {{ client_max_body_size }}
|
||||
listeners:
|
||||
- port: 8008
|
||||
tls: false
|
||||
|
@@ -1,8 +1,10 @@
|
||||
---
|
||||
# General
|
||||
application_id: "web-app-matrix"
|
||||
database_type: "postgres"
|
||||
registration_file_folder: "/data/"
|
||||
well_known_directory: "{{nginx.directories.data.well_known}}/matrix/"
|
||||
|
||||
# Matrix specific
|
||||
matrix_synapse_version: "{{ applications | get_app_conf(application_id, 'docker.services.synapse.version', True) }}"
|
||||
matrix_synapse_image: "{{ applications | get_app_conf(application_id, 'docker.services.synapse.image', True) }}"
|
||||
matrix_synapse_name: "{{ applications | get_app_conf(application_id, 'docker.services.synapse.name', True) }}"
|
||||
@@ -10,4 +12,9 @@ matrix_synapse_data: "{{ applications | get_app_conf(application_id, 'docke
|
||||
matrix_element_version: "{{ applications | get_app_conf(application_id, 'docker.services.element.version', True) }}"
|
||||
matrix_element_image: "{{ applications | get_app_conf(application_id, 'docker.services.element.image', True) }}"
|
||||
matrix_element_name: "{{ applications | get_app_conf(application_id, 'docker.services.element.name', True) }}"
|
||||
matrix_project: "{{application_id | get_entity_name }}"
|
||||
matrix_project: "{{ application_id | get_entity_name }}"
|
||||
|
||||
# Webserver
|
||||
well_known_directory: "{{nginx.directories.data.well_known}}/matrix/"
|
||||
location_upload: "~ ^/_matrix/media/v3/"
|
||||
client_max_body_size: "{{ applications | get_app_conf(application_id, 'client_max_body_size') }}"
|
Reference in New Issue
Block a user