Setting up Multiple Instances of Discourse as Subdomains

Hi everyone,

I have a few questions and was wondering if you could help me clearing some doubts.

I have discourse set up under a main domain and not under a subdomain. I have recently changed my mind and instead of having my forum categories in one place, I would like to have them set up as subdomains, my questions are:

can I set up multiple instances of discourse under one domain? As in, Category of computer, nature, life and science. Can I set up four subdomains and one discourse instance in each subdomain? do I need to remove discourse from my main domain?

Also, is there a way to link users between more than on instance? As in, allow users to have rep and other things per site but be able to operate as a single sign on in all instances? Similar to how SE is steup? Is this something possible?

Best,
Roger

1 Like

So you’re saying that you want to split up your forum into multiple, entirely separate fora? If so, I’d think twice (or three times). If you originally had planned to make it one forum with categories, I assume that those categories do have something in common (they’re different aspects of the same thing) and in that case it’s clear that it should be one forum.

Yes, it’s possible. For discourse it makes no difference whatsoever whether it is running under a domain or a subdomain or whether there are a million other discourse instances in other subdomains. Domains are just a way of creating a human-friendly way of identifying the server on which discourse is running.

In principle, you could probably set up your instances as SSO clients of some SSO provider (or make one instance the SSO provider for the others), but as mentioned earlier, I think this will probably cause more problems than it solves.

2 Likes

And what means can be made so that categories would be like subdomains?

For example:

https://discourse.org/c/plugin -> https://plugin.discourse.org/

nginx?

1 Like

Thank you very much for your response!

nope… they re entirely different not related… initially the idea was to set up set it up as subdomains… but i tried with categories and it doesn’t look as good as i thought it would.

so yeh it would me…

topic1.dicousrseforum.com
topic2.discouseforum.com
topic3.discourseforum.com

so you agree there is no issue in doing that?

exactly. thts wht i mean

1 Like

If they’re unrelated, why did you first plan to put them into the same forum and now want to connect them back together via SSO?

1 Like

I am talking about connecting the users not the topics/categories…

have you ever done it?

No. I ask in advance. Such an opportunity will probably be useful.

2 Likes