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.
- 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)
Hello Kaj,
I have tried this and found the following issues:
In the instructions:
talkyard.createSiteHostname="main-talkyard.example.com" talkyard.baseDomain="multi-ty.example.com"
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?
Thx,
FranzI 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 fortalkyard.cdnOrigin="//isonline.chat"
I assumed that these are the same thingThey're different — the CDN is if you buy a Content Delivery Network from e.g. Fastly, Amazon, KeyCDN, BunnyCDN or something like that. Then, all your Talkyard sites, will serve CSS, Javascript and images etc, from that CDN. But in most cases, I'd say you don't need a CDN, e.g. if you're self hosted at DigitalOcean or Hetzner.
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)