Add option to disable direct CDN uploads

This commit is contained in:
Tulir Asokan
2023-05-14 14:46:04 +03:00
parent de80a77708
commit ad8efb864b
4 changed files with 7 additions and 1 deletions

View File

@@ -145,6 +145,10 @@ bridge:
# Whether or not created rooms should have federation enabled.
# If false, created portal rooms will never be federated.
federate_rooms: true
# Should the bridge upload media to the Discord CDN directly before sending the message when using a user token,
# like the official client does? The other option is sending the media in the message send request as a form part
# (which is always used by bots and webhooks).
use_discord_cdn_upload: true
# Should mxc uris copied from Discord be cached?
# This can be `never` to never cache, `unencrypted` to only cache unencrypted mxc uris, or `always` to cache everything.
# If you have a media repo that generates non-unique mxc uris, you should set this to never.