Browse Source

[HUE-5816] Changing default setting as allowed_hosts=['*']

Testing done:
This way user can still be able to provide declarative allowed_hosts=['settings'] And if not provided it will default to allowed_hosts=["*"] setting.
Prakash Ranade 8 years ago
parent
commit
700f62a

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -230,7 +230,7 @@
 
   # Comma separated list of strings representing the host/domain names that the Hue server can serve.
   # e.g.: localhost,domain1,*
-  ## allowed_hosts="host.domain1"
+  ## allowed_hosts="*"
 
   # Administrators
   # ----------------

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -234,7 +234,7 @@
 
   # Comma separated list of strings representing the host/domain names that the Hue server can serve.
   # e.g.: localhost,domain1,*
-  ## allowed_hosts="host.domain1"
+  ## allowed_hosts="*"
 
   # Administrators
   # ----------------

+ 2 - 1
desktop/core/src/desktop/conf.py

@@ -415,7 +415,8 @@ LOG_REDACTION_FILE = Config(
 
 ALLOWED_HOSTS = Config(
   key='allowed_hosts',
-  dynamic_default=get_dn,
+  # dynamic_default=get_dn, # Currently off as pretty disruptive
+  default=['*'],
   type=coerce_csv,
   help=_('Comma separated list of strings representing the host/domain names that the Hue server can serve.')
 )