Thanks guys, that's unfortunately not what I am looking for. I want only one server and one installation, but have nodebb load content / use a database that depends on the current request.hostname
rudi
Posts
-
NodeBB multisite / network feature? -
NodeBB multisite / network feature?Thanks, yes it should be a network of sites, but they don't neccesarly need to share users or anything, only the code base should be shared.
I think a database approach to multiple sites has several advantages over separate installations:
- New sites can be created through the backend in seconds
- No duplicated code base
- All sites get the same upgrades, theme files
A downside is probably performance when a site get lots of traffic, but then it could still be decoupled to a standalone instance.
Are there any plugin hooks that would allow to add a site_id every time something is saved to the db, and filter by it every time something is retrieved from the db?
-
NodeBB multisite / network feature?Hello!
I am new to node and nodebb and really enjoy the UI!
Would it be possible to have some kind of multihost / multisite / network feature?
I imagine having multiple alias domains / hostnames point to the same nodebb.
Then something like this:
-
A database collection "sites" holds site information like hostname, title, ...
-
Each request checks the current hostname and loads the corresponding (cached) site information
-
When saving topics/comments/users, the current site_id gets saved too.
-
When retrieving topics/comments/users from the database, results will be filtered by current site_id.
This would allow to run multiple, unrelated sites in a network style. Admins could add new sites easily to the network through the admin panel, and then just point the new domain to the same nodebb installation.
What do you think?
Sorry for incorrect English. -