Synapse: Add max avatar/media size
This commit is contained in:
parent
20e20fe290
commit
18c141352c
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,7 @@ listeners:
|
||||||
resources:
|
resources:
|
||||||
- names: [client, federation]
|
- names: [client, federation]
|
||||||
compress: false
|
compress: false
|
||||||
|
|
||||||
database:
|
database:
|
||||||
name: psycopg2
|
name: psycopg2
|
||||||
args:
|
args:
|
||||||
|
@ -28,6 +29,7 @@ database:
|
||||||
host: synapse_postgres
|
host: synapse_postgres
|
||||||
cp_min: 5
|
cp_min: 5
|
||||||
cp_max: 10
|
cp_max: 10
|
||||||
|
|
||||||
log_config: "/data/viyurz.fr.log.config"
|
log_config: "/data/viyurz.fr.log.config"
|
||||||
media_store_path: /data/media_store
|
media_store_path: /data/media_store
|
||||||
enable_registration: true
|
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"
|
signing_key_path: "/data/viyurz.fr.signing.key"
|
||||||
trusted_key_servers:
|
trusted_key_servers:
|
||||||
- server_name: "matrix.org"
|
- 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_enabled: true
|
||||||
url_preview_ip_range_blacklist:
|
url_preview_ip_range_blacklist:
|
||||||
- '127.0.0.0/8'
|
- '127.0.0.0/8'
|
||||||
|
|
Loading…
Reference in a new issue