Synapse: Add max avatar/media size

This commit is contained in:
Viyurz 2023-11-29 14:24:57 +00:00
parent 20e20fe290
commit 18c141352c
No known key found for this signature in database

View file

@ -19,6 +19,7 @@ listeners:
resources:
- names: [client, federation]
compress: false
database:
name: psycopg2
args:
@ -28,6 +29,7 @@ database:
host: synapse_postgres
cp_min: 5
cp_max: 10
log_config: "/data/viyurz.fr.log.config"
media_store_path: /data/media_store
enable_registration: true
@ -38,6 +40,9 @@ form_secret: "bj5sv.-B:R.2Z@@cK*rBti&J,v^34.gXNNR*5tNPWTUpkrE+Sv"
signing_key_path: "/data/viyurz.fr.signing.key"
trusted_key_servers:
- server_name: "matrix.org"
# max_upload_size: 50M # Changer aussi le max_body_size dans le reverse proxy
max_avatar_size: 2M
url_preview_enabled: true
url_preview_ip_range_blacklist:
- '127.0.0.0/8'