Multi tenant / multi site support
Hi. Is it possible to configure a muilti-site multi-tenant installation? I read somewhere in the forum that the database supports multi-tenant but can find no other information.
- 4 回复
- KajMagnus @KajMagnus2021-05-10 13:51:50.948Z
Yes, look here: https://github.com/debiki/talkyard-prod-one/blob/master/docs/multisite-talkyard.adoc
If you try this out, let me know if it works for you? (Maybe there's some step I haven't documented properly / that is confusing)
I have tried this and found the following issues:
In the instructions:
there is no option for talkyard.baseDomain, only for talkyard.cdnOrigin="//isonline.chat"
I assumed that these are the same thing.
The www.example.com/-/create-site only allows the creation of forums with ".localhost" ending. Maybe this has to do with the "missing" talkyard.baseDomain?
Also, is there a way to use the API to create a new forum?
I just added the baseDomain to the play init file and now the create forum works with the correct base domain.
- KajMagnus @KajMagnus2021-05-16 04:11:51.723Z
there is no option for talkyard.baseDomain
I just added the baseDomain to the play init file
Ok, yes that's right — I think that line isn't there, from the start. Maybe I should update the docs, and mention this.
there is no option for
talkyard.baseDomain, only for
I assumed that these are the same thing
is there a way to use the API to create a new forum?
Not as of now. Seems like a good thing to add. It'd need just a hostname, plus the new site owner's email address I would think. And there'd need to be an API secret, in that config file as well, to use when calling the API. (Currently API secrets, are per site, but this secret, would be for the whole server)