mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
docs: Document the REALM_HOSTS feature.
This commit is contained in:
@@ -47,6 +47,24 @@ For servers hosting a large number of organizations, like
|
|||||||
`ROOT_DOMAIN_LANDING_PAGE = True` in `/etc/zulip/settings.py` so that
|
`ROOT_DOMAIN_LANDING_PAGE = True` in `/etc/zulip/settings.py` so that
|
||||||
the homepage for the server is a copy of the Zulip homepage.
|
the homepage for the server is a copy of the Zulip homepage.
|
||||||
|
|
||||||
|
### Other hostnames
|
||||||
|
|
||||||
|
If you'd like to use hostnames that are not subdomains of each other,
|
||||||
|
you can set the `REALM_HOSTS` setting in `/etc/zulip/settings.py` to a
|
||||||
|
Python dictionary, like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
REALM_HOSTS = {
|
||||||
|
'mysubdomain': 'hostname.example.com',
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
What this will do is map the hostname `hostname.example.com` to the
|
||||||
|
realm whose `subdomain` in the Zulip database is `mysubdomain`.
|
||||||
|
|
||||||
|
In a future version of Zulip, we expect to move this configuration
|
||||||
|
into the database.
|
||||||
|
|
||||||
### The root domain
|
### The root domain
|
||||||
|
|
||||||
Most Zulip servers host a single Zulip organization on the root domain
|
Most Zulip servers host a single Zulip organization on the root domain
|
||||||
|
|||||||
Reference in New Issue
Block a user