I am trying to configure the endpoint that comes back from a clip when my object is successfully uploaded to Amazon S3. The download and everything works correctly, but the return URL is incorrect to display the download.
The currently returned URL is http://s3.amazonaws.com/path/to/my/items (as shown in the image below).
Instead of s3.amazonaws.com I would like the root to be specific to the bucket location (e.g. s3-us-west-1.amazonaws.com/path/to/my/items )

Where can I try and configure a different url (from s3.amazonaws.com to something else)? I tried adding the URL with the above path to the configuration file, for example:
#Paperclip Amazon S3 config.paperclip_defaults = { :storage => :s3, :url => "https://s3-us-west-1.amazonaws.com/", :s3_credentials => { :bucket => ENV['S3_BUCKET_NAME'], :access_key_id => ENV['AWS_ACCESS_KEY_ID'], :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'] } }
Which, apparently, has no effect. Please advise where I should set this parameter!
Thanks in advance!
source share