@ehson_mokhtary you may also find some clues e.g. in these posts:
https://github.com/cybrespace/cybrespace-meta/blob/master/s3.md
(see e.g. this section https://github.com/cybrespace/cybrespace-meta/blob/master/s3.md#follow-up although I've no idea how you'd do that on Cloudron)
https://chrishubbs.com/2022/11/19/hosting-a-mastodon-instance-moving-asset-storage-to-s3/