-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Cloud-based sitemap storage #84
Comments
Hi @vsychov ! Thanks for the feature request.
|
Hi @boazpoolman, Probably I need explain my setup first there is graphic schema. Generating sitemap in each container separately can cause problems (performance and race-conditions). So better - dedicate special worker that will be responsible for sitemap generation and upload it to some external storage (and create some special rule for sitemap on LB). Hope answer above in enough to clarify case 1 and 2. About case 3: config sync plugin works great, while you have same config for multiple envs, but it's going more complicated when you need specify different hostname for each env, e.g. you can have env for dev, for test and for production, each of them will have different hostname, it's easy to handle by using env varibles in config, but more complicated to handle when it's in site settings. |
@vsychov Thanks for the explanation. This makes it very clear. 1 EDIT: 3 Regarding 2 |
Thanks @boazpoolman, 3 is definitely not big issue. Regarding 2: there is use example article from lib author: https://tweedegolf.nl/en/blog/38/clouds-without-shadows |
I'll look in to this! |
Hi! Thanks for the plugin, it works great! To continue the discussion on "Regarding 2", an example of the cloud provider implementation is the AWS S3 Strapi plugin for the upload management. This feature is very useful when you have multiple instances/pods of the same repository deployed and when the user (or the crawler!) is redirected to an instance. We are not sure about the instance and so if the sitemap is generated in the public folder of Strapi, we cannot know which instance/pod is the right one, it's the same for file uploads. The solution is to define a provider to upload the files to the cloud. Each instance can upload/replace the sitemap in the cloud, it doesn't matter because each instance reads the same database and when the build comes, it's up to date and the new generated sitemap will be uploaded to the cloud. I'm not sure this is 100% clear, feel free if you have any questions. |
Hi @mmondou Yep! I think it makes most sense to hook into the Strapi upload provider to store your sitemap file. Though I don't have any time planned to work on implementing this feature. |
This feature has been released with version 3.0.0 of the Sitemap plugin. As of this new version, the plugin serves a "virtual sitemap". This is not a XML file stored in the public folder in your file system. Instead the XML gets saved to the database and an XML API endpoint is exposed to access the sitemap. |
Hello,
Feature request
Thanks for you great work on this beautiful plugin.
For now plugin don't very support cloud-based deployments, and it's will be nice to have it, main problems:
The text was updated successfully, but these errors were encountered: