@@ -484,68 +484,19 @@ limit_remote_rooms:
484
484
#
485
485
# show_users_in_user_directory: false
486
486
487
- # Message retention policy at the server level.
488
- #
489
- # Room admins and mods can define a retention period for their rooms using the
490
- # 'm.room.retention' state event, and server admins can cap this period by setting
491
- # the 'allowed_lifetime_min' and 'allowed_lifetime_max' config options.
487
+ # The largest allowed file size for a user avatar. Defaults to no restriction.
492
488
#
493
- # If this feature is enabled, Synapse will regularly look for and purge events
494
- # which are older than the room's maximum retention period. Synapse will also
495
- # filter events received over federation so that events that should have been
496
- # purged are ignored and not stored again.
489
+ # Note that user avatar changes will not work if this is set without
490
+ # using Synapse's media repository.
497
491
#
498
- retention :
499
- # The message retention policies feature is disabled by default. Uncomment the
500
- # following line to enable it.
501
- #
502
- # enabled: true
503
-
504
- # Default retention policy. If set, Synapse will apply it to rooms that lack the
505
- # 'm.room.retention' state event. Currently, the value of 'min_lifetime' doesn't
506
- # matter much because Synapse doesn't take it into account yet.
507
- #
508
- # default_policy:
509
- # min_lifetime: 1d
510
- # max_lifetime: 1y
511
-
512
- # Retention policy limits. If set, a user won't be able to send a
513
- # 'm.room.retention' event which features a 'min_lifetime' or a 'max_lifetime'
514
- # that's not within this range. This is especially useful in closed federations,
515
- # in which server admins can make sure every federating server applies the same
516
- # rules.
517
- #
518
- # allowed_lifetime_min: 1d
519
- # allowed_lifetime_max: 1y
492
+ # max_avatar_size: 10M
520
493
521
- # Server admins can define the settings of the background jobs purging the
522
- # events which lifetime has expired under the 'purge_jobs' section.
523
- #
524
- # If no configuration is provided, a single job will be set up to delete expired
525
- # events in every room daily.
526
- #
527
- # Each job's configuration defines which range of message lifetimes the job
528
- # takes care of. For example, if 'shortest_max_lifetime' is '2d' and
529
- # 'longest_max_lifetime' is '3d', the job will handle purging expired events in
530
- # rooms whose state defines a 'max_lifetime' that's both higher than 2 days, and
531
- # lower than or equal to 3 days. Both the minimum and the maximum value of a
532
- # range are optional, e.g. a job with no 'shortest_max_lifetime' and a
533
- # 'longest_max_lifetime' of '3d' will handle every room with a retention policy
534
- # which 'max_lifetime' is lower than or equal to three days.
535
- #
536
- # The rationale for this per-job configuration is that some rooms might have a
537
- # retention policy with a low 'max_lifetime', where history needs to be purged
538
- # of outdated messages on a very frequent basis (e.g. every 5min), but not want
539
- # that purge to be performed by a job that's iterating over every room it knows,
540
- # which would be quite heavy on the server.
541
- #
542
- # purge_jobs:
543
- # - shortest_max_lifetime: 1d
544
- # longest_max_lifetime: 3d
545
- # interval: 5m:
546
- # - shortest_max_lifetime: 3d
547
- # longest_max_lifetime: 1y
548
- # interval: 24h
494
+ # The MIME types allowed for user avatars. Defaults to no restriction.
495
+ #
496
+ # Note that user avatar changes will not work if this is set without
497
+ # using Synapse's media repository.
498
+ #
499
+ # allowed_avatar_mimetypes: ["image/png", "image/jpeg", "image/gif"]
549
500
550
501
# How long to keep redacted events in unredacted form in the database. After
551
502
# this period redacted events get replaced with their redacted form in the DB.
@@ -1040,30 +991,6 @@ media_store_path: "DATADIR/media_store"
1040
991
#
1041
992
# max_upload_size: 50M
1042
993
1043
- # The largest allowed size for a user avatar. If not defined, no
1044
- # restriction will be imposed.
1045
- #
1046
- # Note that this only applies when an avatar is changed globally.
1047
- # Per-room avatar changes are not affected. See allow_per_room_profiles
1048
- # for disabling that functionality.
1049
- #
1050
- # Note that user avatar changes will not work if this is set without
1051
- # using Synapse's local media repo.
1052
- #
1053
- # max_avatar_size: 10M
1054
-
1055
- # Allow mimetypes for a user avatar. If not defined, no restriction will
1056
- # be imposed.
1057
- #
1058
- # Note that this only applies when an avatar is changed globally.
1059
- # Per-room avatar changes are not affected. See allow_per_room_profiles
1060
- # for disabling that functionality.
1061
- #
1062
- # Note that user avatar changes will not work if this is set without
1063
- # using Synapse's local media repo.
1064
- #
1065
- # allowed_avatar_mimetypes: ["image/png", "image/jpeg", "image/gif"]
1066
-
1067
994
# Maximum number of pixels that will be thumbnailed
1068
995
#
1069
996
# max_image_pixels: 32M
0 commit comments