From 93e29629abbef4af92dd80377245b4c9c944fe0e Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 5 Feb 2018 10:18:01 -0800 Subject: [PATCH] settings: In ALLOWED_HOSTS example, show a list and an IP address. Different formats for configuration files have a wide variety of ways of representing lists; so if you're not accustomed to Python syntax, or aren't thinking of this file as Python code, the syntax for several ALLOWED_HOSTS entries may not be obvious. And this setting is one that an admin is likely to want to touch quite early in using Zulip. So, demonstrate a multi-element list. For similar reasons, demonstrate an IP address. This one is in a range reserved for documentation (by RFC 5737), like `example.com`. --- zproject/prod_settings_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.py index bf70f150f4..ed64c0bf1a 100644 --- a/zproject/prod_settings_template.py +++ b/zproject/prod_settings_template.py @@ -83,7 +83,7 @@ ZULIP_ADMINISTRATOR = 'zulip-admin@example.com' # accessing your server by other hostnames, list them here. # # Note that these should just be hostnames, without port numbers. -#ALLOWED_HOSTS = ['zulip-alias.example.com'] +#ALLOWED_HOSTS = ['zulip-alias.example.com', '192.0.2.1'] ### AUTHENTICATION SETTINGS #