[feature] Custom prefix (or subfolder) for s3 #1371
Labels
config
Something needs to be made configurable, or there's a config issue
enhancement
New feature or request
storage/media
Issues related to how we store and serve media
Assume that I have:
example.com
s3://my-media-bucket
https://media.example.com
, pointing thes3://my-media-bucket
.Looks like GoToSocial stores images in like
01AAAAAAAAAA/attachment/original/01BBBBBBBB.png
. Let's call itapple.png
for short.So I want:
https://media.example.com/gotosocial/apple.png
s3://my-media-bucket/gotosocial/apple.png
But actual:
/gotosocial/
in this case.storage-s3-bucket: my-media-bucket/gotosocial
, but GoToSocial says "Bucket name contains invalid characters".media.example.com
storage-s3-proxy: false
->https://s3.dualstack.ap-northeast-2.amazonaws.com/my-media-bucket/apple.png
storage-s3-proxy: true
->https://example.com/fileserver/apple.png
Currently workaround:
s3://my-media-bucket-gotosocial
and make the CDN points therehttps://media.example.com/gotosocial/*
->s3://my-media-bucket-gotosocial/*
storage-s3-proxy: true
and make nginx/caddy redirects to CDNProblem 2 maybe duplicates of #1026.
Feel free to feedback or edit this issue, because I have poor English writing skills.
Opened issues related with AWS S3
The text was updated successfully, but these errors were encountered: