-
Notifications
You must be signed in to change notification settings - Fork 81
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
Multi tenant #2917
Multi tenant #2917
Conversation
5a58f47
to
4dc7e6c
Compare
82a568c
to
3099b74
Compare
@mfacar this is due to cookies not being port-specific the same thing happens if you use the development branch with 2 instances in different ports, we solve this by having a proxy nginx configured with diferent domain names per instance.
@mfacar sorry i forgot, to be able to add tenants on the fly mongo should be running as a replica set, quick replica set locally:
with that, you should be able to add a tenant on the fly.
|
@daneryl Uwazi seems to be ignoring the MULTI_TENANT flag, even when starting up with |
this is true, the initial idea is that there is no single-tenant mode, uwazi is always multi-tenant, the reason for the flag to exist is to temporary have some features that can not work when using uwazi as multi-tenant, basically this flag is to remove backward compatibility on some features, maybe we should rename the flag ? |
1f5c339
to
7725d94
Compare
there is no more events when a tenant is added, the models will be created and cached when needed.
fixes #2393
basic set up for testing multi-tenant
now you should be able to acces tenant1 on localhost:3001 and tenant2 on 3002, tenants can be added on the fly (with the same commands above) also while uwazi is running without restarting the node process, when MULTI_TENANT is not set the instance should behave exactly like it behaves now on development for backward compatibility.
scripts like reindex and migrate still require to set up the proper env vars with the names of the db and elastic indexes.
PR checklist:
QA checklist: