Multi-tenancy publishing #56
-
Hi Websight creators, I am encouraged by your containerized architecture for its potential to scale up to support many websites with one author instance. Just curious how it might work for publishing multiple spaces: would you recommend a separate nginx configuration for each published space or can a single nginx configuration support multiple tenants? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi Ben, We have released another Components Library based on Bulma this week. You can find it here. WebSight Starter will be configured to work with two sites (one for each template), so the example will be available soon (this or next week I guess). The general recommendation, for now, is to use a single Nginx container with per-site virtual hosts, like here: Thanks to the fact, that we use containers, we are quite flexible in composing the final stack. In more complex scenarios, we can introduce multiple Nginx servers or even CMS containers (we may have a stack for application or applications groups - i.e. corporate or public sites). We are also finishing Kubernetes Helm Chart, so it will be simpler to create advanced stacks. Again, the recommendation is to keep it simple, unless you need to address some specific business request. One more thing to add, if you plan to configure multiple sites to work with one domain, you probably will want to set simple paths shortening to false here: https://github.com/websight-io/starter/blob/main/distribution/src/main/features/luna.json#L17 |
Beta Was this translation helpful? Give feedback.
-
@kamil-kwarciak
|
Beta Was this translation helpful? Give feedback.
-
As @michalcukierman mentioned we used virtual hosts to define configuration per page. |
Beta Was this translation helpful? Give feedback.
Hi Ben,
We have released another Components Library based on Bulma this week. You can find it here. WebSight Starter will be configured to work with two sites (one for each template), so the example will be available soon (this or next week I guess).
The general recommendation, for now, is to use a single Nginx container with per-site virtual hosts, like here:
https://www.keycdn.com/support/nginx-virtual-host . Nginx is fast, and you can scale both horizontally and vertically in our architecture, so it's mostly about Developer Experience and code maintainability. Single configuration per
server block
allows you to organize the code well and separate site-specific logic.Thanks to the fact…