media.md (2132B)
1 # Media 2 3 ## Settings 4 5 ```yaml 6 ######################## 7 ##### MEDIA CONFIG ##### 8 ######################## 9 10 # Config pertaining to user media uploads (videos, image, image descriptions). 11 12 # Int. Maximum allowed image upload size in bytes. 13 # Examples: [2097152, 10485760] 14 # Default: 10485760 -- aka 10MB 15 media-image-max-size: 10485760 16 17 # Int. Maximum allowed video upload size in bytes. 18 # Examples: [2097152, 10485760] 19 # Default: 41943040 -- aka 40MB 20 media-video-max-size: 41943040 21 22 # Int. Minimum amount of characters required as an image or video description. 23 # Examples: [500, 1000, 1500] 24 # Default: 0 (not required) 25 media-description-min-chars: 0 26 27 # Int. Maximum amount of characters permitted in an image or video description. 28 # Examples: [500, 1000, 1500] 29 # Default: 500 30 media-description-max-chars: 500 31 32 # Int. Number of days to cache media from remote instances before they are removed from the cache. 33 # A job will run every day at midnight to clean up any remote media older than the given amount of days. 34 # 35 # When remote media is removed from the cache, it is deleted from storage but the database entries for the media 36 # are kept so that it can be fetched again if requested by a user. 37 # 38 # If this is set to 0, then media from remote instances will be cached indefinitely. 39 # Examples: [30, 60, 7, 0] 40 # Default: 30 41 media-remote-cache-days: 30 42 43 # Int. Max size in bytes of emojis uploaded to this instance via the admin API. 44 # The default is the same as the Mastodon size limit for emojis (50kb), which allows 45 # for good interoperability. Raising this limit may cause issues with federation 46 # of your emojis to other instances, so beware. 47 # Examples: [51200, 102400] 48 # Default: 51200 49 media-emoji-local-max-size: 51200 50 51 # Int. Max size in bytes of emojis to download from other instances. 52 # By default this is 100kb, or twice the size of the default for media-emoji-local-max-size. 53 # This strikes a good balance between decent interoperability with instances that have 54 # higher emoji size limits, and not taking up too much space in storage. 55 # Examples: [51200, 102400] 56 # Default: 51200 57 media-emoji-remote-max-size: 102400 58 ```