Dump Symfony2 assets to Amazon S3

后端 未结 3 488
栀梦
栀梦 2021-01-30 15:08

I\'d like to dump my assets to my s3 bucket in production, after deploying with capifony in Symfony 2. I\'ve found some solution, but don\'t really find out the best to use.

3条回答
  •  有刺的猬
    2021-01-30 16:02

    Actually you don't really need and probably even shouldn't, put your key in the application code. In Amazon S3 you can specify access by sender, in this case you're production server address.

    Take a look at the provided post link: https://forums.aws.amazon.com/thread.jspa?messageID=236066

    This would allow you to freely write from that server to your bucket. Remember also to deny access from every other ip.

提交回复
热议问题