admin管理员组文章数量:1130349
We are trying setup 4 different sites using a single WordPress instance. Our challenge is that we would like each to have their own S3 Bucket, however when it comes to users the avatar image of the user will be stored on a network level other than that the media files are separate from one another.
Does anyone know how to achieve this?
We are trying setup 4 different sites using a single WordPress instance. Our challenge is that we would like each to have their own S3 Bucket, however when it comes to users the avatar image of the user will be stored on a network level other than that the media files are separate from one another.
Does anyone know how to achieve this?
Share Improve this question asked Jan 1, 2019 at 4:07 HossjHossj 1214 bronze badges1 Answer
Reset to default 0welcome :) We really need more information. A list of what you have tried and would like to try would be helpful as well. Additionally, it would be good to know whether you are wanting to use the AWS S3 Bucket to store only media or more.
From a developer standpoint:
Multi-site implementations give each site an ID. You can get the site's ID with the function get_current_blog_id() and then use that to tell your plugin which hard-coded AWS S3 Bucket to use.
Alternatively, you can make the plugin have an options page where you can add the Bucket credentials and let it handle authentication from there.
Since, normally, plugin settings and media libraries are not shared between network sites you would likely be able to find a plugin that will suit your needs. This one seems popular: https://wordpress/plugins/amazon-s3-and-cloudfront/
We are trying setup 4 different sites using a single WordPress instance. Our challenge is that we would like each to have their own S3 Bucket, however when it comes to users the avatar image of the user will be stored on a network level other than that the media files are separate from one another.
Does anyone know how to achieve this?
We are trying setup 4 different sites using a single WordPress instance. Our challenge is that we would like each to have their own S3 Bucket, however when it comes to users the avatar image of the user will be stored on a network level other than that the media files are separate from one another.
Does anyone know how to achieve this?
Share Improve this question asked Jan 1, 2019 at 4:07 HossjHossj 1214 bronze badges1 Answer
Reset to default 0welcome :) We really need more information. A list of what you have tried and would like to try would be helpful as well. Additionally, it would be good to know whether you are wanting to use the AWS S3 Bucket to store only media or more.
From a developer standpoint:
Multi-site implementations give each site an ID. You can get the site's ID with the function get_current_blog_id() and then use that to tell your plugin which hard-coded AWS S3 Bucket to use.
Alternatively, you can make the plugin have an options page where you can add the Bucket credentials and let it handle authentication from there.
Since, normally, plugin settings and media libraries are not shared between network sites you would likely be able to find a plugin that will suit your needs. This one seems popular: https://wordpress/plugins/amazon-s3-and-cloudfront/
本文标签: amazonUse separate S3 buckets for separate sites in a multisite environment
版权声明:本文标题:amazon - Use separate S3 buckets for separate sites in a multisite environment 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749054940a2309196.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论