Files
docs/pages/self-hosting/organization-hosting-modes.mdx
Leo Wilkin 341755543b Several Improvements - Vercel, Trails (#3)
* Update index.mdx

* Update s3.mdx

* Update organization-hosting-modes.mdx

* Update vercel.mdx

* Update trail.mdx

* Update trail.mdx

* Update vercel.mdx

* Rename vercel.mdx to vercel.txt

* Update vercel.txt

* Create vercel.mdx

* Update _meta.json

* Update organization-hosting-modes.mdx

* Update pages/features/trail.mdx

Co-authored-by: Badr B. <bdswve@gmail.com>

* Update pages/features/trail.mdx

Co-authored-by: Badr B. <bdswve@gmail.com>

* Update vercel.mdx

* Update index.mdx

---------

Co-authored-by: Badr B. <bdswve@gmail.com>
2023-11-15 21:54:39 +01:00

37 lines
1.3 KiB
Plaintext

import { Callout } from "nextra-theme-docs";
import Image from "next/image";
# Organization Hosting Modes
<Callout type="warning">Multi Organization setup is still work in progress </Callout>
LearnHouse supports Multi Organizations (Multi-Tenacy), which means you can have multiple organizations using the same platform and therefore the same instance of LearnHouse.
Your Organizations will share the same database and have their content, files, users on the database marked by `organization_id` and every request will be scoped to that organization.
<br />
<img style={{ borderRadius: 10 }} quality={100} src="/img/schemas/orgs_hosting.png" alt="Hello" width={800} height={500} />
## Single Organization setup
<Callout type="info">Single Organization setup is the default when installing Learnhouse for the first time.</Callout>
When using a Single Organization Setup you should refer your Organization's `slug` in the **frontend config file**
### Frontend Config
```bash filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg
```
## Multi Organization setup
<Callout type="info">At the moment, only Single Organizations are supported by Self-Hosting.</Callout>
### Frontend Config
```bash filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=true
```