The configuration that I would like to obtain would be this:
websiteN (in different server)
These sites would be few pages that take data from cms.cockpit.com.
Which framework would you recommend? What would be the fastest way to make it happen?
Create all static sites with JS? Several installations would be needed and maintaining them would not be easy. Am I wrong? I should change my approach to my knowledge …
Yesterday I tried Gatsby but the plugins didn’t work.
If you feed all website content from Cockpit API server (in your example: cms.cockpit.com) don’t let frontend of your website to have direct access to API, instead make some gateway on server side (PHP) and serve content to website visitors from website server.
Here is why I recommend this:
Most search engines are not quite good in parsing websites that gather main content from Ajax calls
You can make your own caching mechanism
Main thing is that you can make extended security by whitening IP address of websites servers on API server via Firewall
Every website will have it’s own bandwidth
Possible bad thing is that your server response will be slow if your servers are not in the same datacenter or if you didn’t implement some caching mechanism.