kreeti / kt-paperclip

Easy file attachment management for ActiveRecord
Other
275 stars 95 forks source link

support virtual_host in presigned_url when using s3_host_alias #124

Open tillawy opened 1 year ago

tillawy commented 1 year ago

when using paperclip options: { url: ":s3_alias_url" & "s3_host_alias": "bucket_alias.domain.com" },

make the presigned_url : https://bucket_alias.domain.com/file?X-Amz-Credential=

instead of: https://s3.amazonaws.com/bucket_alias.domain.com/file?X-Amz-Credential=