Is it possible to refer to the image on Amazon S3 with the URL of its own domain?

Asked 1 years ago, Updated 1 years ago, 335 views

On the blog site created by Rails 6, I use Heroku to retrieve the posted image saved in Amazon S3.

The url is as follows:

https://example.s3.amazonaws.com/uploads/article/picture1/78/window.png

I'd like to match the domain of the blog URL with the domain of the image URL. Is there a way?

https://example.com/uploads/article/picture1/78/window.png

I would like to start with https://example.com as shown in .

This will allow other shared blog service sites to retrieve posted images.

I don't know how to do this by changing the settings of Amazon S3, changing my development environment, or using other storage services instead of Amazon S3.

amazon-s3

2022-12-19 03:51

1 Answers

I think I can do something

[AWS] Make the URL of the S3 image a unique domain (subdomain)
https://brainlog.jp/server/aws/post-3180/


2022-12-19 09:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.