[GeoNode-users] allowed_host & proxy_allowed_host
Simone Dalmasso
simone.dalmasso at gmail.com
Tue Dec 15 00:19:02 PST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151215/7a9d7c96/attachment.html>
More information about the geonode-users
mailing list