diff --git a/docs/prod-install.md b/docs/prod-install.md index 56c61bfd8d..20a8f75c41 100644 --- a/docs/prod-install.md +++ b/docs/prod-install.md @@ -89,9 +89,6 @@ These settings include: your configuration using `manage.py send_test_email` to confirm your outgoing email configuration is working correctly. -- `ALLOWED_HOSTS`: Replace `*` with the fully qualified DNS name for - your Zulip server here. - ## Step 4: Initialize Zulip database At this point, you are done doing things as root. To initialize the diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.py index a2f5bbd41f..327eaa2d6e 100644 --- a/zproject/prod_settings_template.py +++ b/zproject/prod_settings_template.py @@ -111,7 +111,7 @@ NOREPLY_EMAIL_ADDRESS = "noreply@example.com" # header. See Django's documentation here: # . # Zulip adds 'localhost' to the list automatically. -ALLOWED_HOSTS = ['zulip.example.com'] +ALLOWED_HOSTS = [EXTERNAL_HOST] ### OPTIONAL SETTINGS diff --git a/zproject/settings.py b/zproject/settings.py index 55116a930f..fa506f0621 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -212,7 +212,6 @@ REQUIRED_SETTINGS = [("EXTERNAL_HOST", "zulip.example.com"), ("AUTHENTICATION_BACKENDS", ()), ("NOREPLY_EMAIL_ADDRESS", "noreply@example.com"), ("DEFAULT_FROM_EMAIL", "Zulip "), - ("ALLOWED_HOSTS", ['zulip.example.com', '127.0.0.1', 'localhost']), ] if ADMINS == "":