How to setup multiple instances on one server?
I’ll like to setup forums for three different communities but want to do so using just one server. Did not find this in the installation instructions. Will like to know where to start. I’ll do a pull request to the installation instructions when I get it to work so others can benefit as well.
- 6 replies
- KajMagnus @KajMagnus2018-08-09 14:51:09.405Z
Preliminary docs. These are the relevant config values. And maybe there's some typo below — can you please wait with trying this?, until I've tested myself, maybe tomorrow or during the weekend. Then I'll notify you when i know this works. I'm posting this now anyway, though, in case you're curious, or maybe you want to have a look and ask something.
## This is the main website. Here you can login as super admin, to view events from all your sites hosted by that server. talkyard.hostname="talkyard.yourdomain.com" ## To become owner of the main website, during installation. talkyard.becomeOwnerEmailAddress="firstname.lastname@example.org" ## When you create new forums, they will be placed at this domain, ## example: the-2nd-forum.yourdomain.com ## Consider getting a wildcard cert from Let'sEncrypt. talkyard.baseDomain="yourdomain.com" ## When you configure Google OpenAuth apps, you currently do that only once ## for all forums on the whole server. People get redirected to this address, ## for logging in: ## (You can leave it commented out — then, the `talkyard.hostname` setting gets used instead.) # talkyard.loginOrigin="https://talkyard.yourdomain.com" ## To create new forums, people need to go to the below address, ## and url pathname /-/create-site ## example: http(s)://talkyard.yourdomain.com/-/create-site talkyard.createSiteHostname="talkyard.yourdomain.com" ## To create a *test* site, they need to go to this address: ## and url pathname /-/create-test-site ## example: http(s)://talkyard.yourdomain.com/-/create-test-site #talkyard.createTestSiteHostname="talkyard.yourdomain.com" #talkyard.superAdmin.emailAddresses="email@example.com"
- KajMagnus @KajMagnus2018-08-11 07:59:54.065Z
Sorry I've been occupied writing docs about HTTPS.
HTTPS is something you will want to configure, for your forums? And parts of the HTTPS docs are about many forums on the same server. So maybe you'd like to have a look at the HTTPS docs? Maybe try to follow those docs and enable HTTPS for your first forum?
Then you can have a look here: https://www.talkyard.io/-104#post-9
Well, this means with one installation we can have multiple forums, with different domains? Because this is what I need to do. I'm going to create two different forums and would be great if I would need to install Talkyard just once.
- KajMagnus @KajMagnus2018-12-13 15:17:45.505Z
Yes one installation can have multiple forums, with different domains. Ok good that that's useful to you :- )
Would you like to wait 1 or 2 weeks with installing? I'm just about to do some changes to the installation: I'll add Traefik, so that there'll be automatic HTTPS. (Are you looking to install on a new server, or reuse an existing Docker-Compose / Swarm setup with another reverse proxy already?)