[GeoNode-users] allowed_host & proxy_allowed_host
Eugenio Trumpy
frippe12573 at hotmail.com
Tue Dec 15 06:22:03 PST 2015
I read in the first line:
A list of strings representing the host/domain names that this Django site can
serve.
What does it refer 'Django site can serve'?
User will use my geonode? that way all I guess,
If it means where Django site stay and run, ok localhost/my_domain.
E.
From: simone.dalmasso at gmail.com
Date: Tue, 15 Dec 2015 15:08:07 +0100
Subject: Re: allowed_host & proxy_allowed_host
To: frippe12573 at hotmail.com
CC: geonode-users at lists.osgeo.org
for ALLOWED_HOSTS =['localhost', 'yourdomain.com']
https://docs.djangoproject.com/en/1.9/ref/settings/#allowed-hosts
2015-12-15 13:11 GMT+01:00 Eugenio Trumpy <frippe12573 at hotmail.com>:
Hi Simone, thanks for the hints.
So in my case I need to leave them as default, isn't it?
Can you make me an example on when would be good to stated different value and not localhost?
Thanks
E.
From: simone.dalmasso at gmail.com
Date: Tue, 15 Dec 2015 09:19:02 +0100
Subject: Re: allowed_host & proxy_allowed_host
To: frippe12573 at hotmail.com
CC: geonode-users at lists.osgeo.org
they have different meaning,
ALLOWED_HOSTS should contain localhost and the domain of the server
PROXY_ALLOWED_HOSTS can potentially be empty if you don't plan to load external data in the maps.
2015-12-14 15:49 GMT+01:00 Eugenio Trumpy <frippe12573 at hotmail.com>:
Hi,
I think I understand the meaning, but I'm not sure the correct usage.
Currently in my case I set them as default:
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '::1']
PROXY_ALLOWED_HOSTS = ("127.0.0.1", 'localhost', '::1')
but I wonder if it is correct, because it allows only the request from localhost, isn't it?
I'm working on the configuration of a geonode already on production server, so
I wonder if the config above is correct, or should I use '*'?
Thanks
Eugenio.
From: simone.dalmasso at gmail.com
Date: Wed, 9 Dec 2015 21:42:59 +0100
Subject: Re: allowed_host & proxy_allowed_host
To: frippe12573 at hotmail.com
CC: geonode-users at lists.osgeo.org
Eugenio,
ALLOWED_HOSTS are the authorized names and ip addresses that you can use to reach the server. See the django docs for more info.
PROXY_ALLOWED_HOSTS are the names and ips that the proxy is allowed to connect to, for example for importing external services into the map composer (not the geonode services)
2015-12-09 17:14 GMT+01:00 Eugenio Trumpy <frippe12573 at hotmail.com>:
Hi everybody,
I would like to understand better the importance of the two variables:
ALLOWED_HOST
and
PROXY_ALLOWED_HOST
which are now mandatory (?) in the config file 'local_setting.py' in the master version.
Currently I set up this two variables as stated in the documentation:
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '::1']
PROXY_ALLOWED_HOSTS = ("127.0.0.1", 'localhost', '::1')
However I wonder if this is correct for my environment.
I'm working for deploying a geonode on my server and not in my localhost (desktop) as well as
any VM. I have a server with its own ip and hostname.
How should I use these two variables? What do they mean?
Thanks
Eugenio
--
Simone
--
Simone
--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151215/52058fbf/attachment.html>
More information about the geonode-users
mailing list