在KeystoneJS中实现多租户 [英] Implementing multitenancy in KeystoneJS

查看:112
本文介绍了在KeystoneJS中实现多租户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

KeystoneJS如何用于实现多租户?可能吗?

How can KeystoneJS be used to implement multi-tenancy? Is it possible at all?

用例示例:一家公司正在使用KeystoneJS创建一个新的博客平台,它希望允许使用一个KeystoneJS实例中的相同模型来使用多个博客站点,但是每个博客作者只能控制自己的站点.

Example use case: A company is creating a new blog platform using KeystoneJS and it wants to allow for multiple blog sites using the same models from one KeystoneJS instance but each blogger should only be able to control their own site.

推荐答案

Keystonejs并不真正支持此功能.但是,您可以做的是将Docker之类的东西与Keystonejs网站的图像配合使用,然后添加一些配置以为每个实例提供不同的db路径.

Keystonejs does not really support this. Something that you could do, however, is to use something like Docker with an image of the Keystonejs website, then add some configuration to give each instance a different db path.

这篇关于在KeystoneJS中实现多租户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆