Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

dev_settings: Fix landing page not accessible on root domain.

Prakhar Pratyush1e7468bbe527
diff --git a/zproject/dev_settings.py b/zproject/dev_settings.py
index e2b8d3878b1..c7def46bdb0 100644
--- a/zproject/dev_settings.py
+++ b/zproject/dev_settings.py
@@ -217,3 +217,7 @@ ALLOW_GROUP_VALUED_SETTINGS = True
# This value needs to be lower in development than usual to allow
# for quicker testing of the feature.
RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS = 5
+
+# In a dev environment, 'zulipdev.com:9991' is used to access the landing page.
+# See: https://zulip.readthedocs.io/en/latest/subsystems/realms.html#working-with-subdomains-in-development-environment
+ROOT_DOMAIN_LANDING_PAGE = True
diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.py
index 37f604c86cc..71a5705ed4a 100644
--- a/zproject/test_extra_settings.py
+++ b/zproject/test_extra_settings.py
@@ -289,3 +289,5 @@ ALLOW_GROUP_VALUED_SETTINGS = True
RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS = 0
KATEX_SERVER = False
+
+ROOT_DOMAIN_LANDING_PAGE = False