[GeoNode-users] allowed_host & proxy_allowed_host

Simone Dalmasso simone.dalmasso at gmail.com
Tue Dec 15 06:08:07 PST 2015


for ALLOWED_HOSTS =['localhost', 'yourdomain.com']

https://docs.djangoproject.com/en/1.9/ref/settings/#allowed-hosts
<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/a626b864/attachment-0001.html>


More information about the geonode-users mailing list