[GeoNode-users] Geonode url under /geonode path

Gus MacAulay gusmacaulay at gmail.com
Thu Mar 26 19:31:50 PDT 2020


Hi Teresa,

I was able to do this with nginx configuration.  I am running on docker so
I had to create a slightly customised nginx docker container.
The nginx.conf needs to have a geonode entry something like this - it's not
perfect but it works for my purpose;

 location /geonode {      etag off;      expires 0;      rewrite
/geonode(.+) $1 break;      include uwsgi_params;      uwsgi_pass
uwsgi://django:8000;      add_header Access-Control-Allow-Credentials
false;      add_header Access-Control-Allow-Headers "Content-Type,
Accept, Authorization, Origin, User-Agent";	add_header
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS";      if
($request_method = OPTIONS) {        add_header
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type,
Accept";        add_header Access-Control-Allow-Credentials true;
  add_header Content-Length 0;        add_header Content-Type
text/plain;        add_header Access-Control-Max-Age 1728000;
return 200;      }      client_max_body_size 1500M;
client_body_buffer_size 2M;       proxy_redirect
http://django:8000 /geonode;
    }


On Wed, 25 Mar 2020 at 22:15, Francesco Bartoli <xbartolone at gmail.com>
wrote:

> Hi Teresa,
>
> this would heavily affect the routing of the django application and its
> configuration. You can try to adapt it within a geonode-project but I can’t
> recommend.
> I don’t know if others have some different experiences.
>
> Hope this helps
> Francesco
> Il 25 mar 2020, 10:12 +0100, Teresa Fazio <fazio at planetek.it>, ha scritto:
>
> Hi all,
>
> How can I publish my geonode app under url like
>
>
>
> https://mydomain.it/geonode
>
>
>
> Thanks in advance
>
>
>
> Teresa Fazio
>
> Technical Specialist
>
> Government & Security SBU
>
>
>
> Planetek Italia S.r.l.
>
> Via Massaua, 12
>
> I-70132 Bari BA - Italy
>
> Tel. +39 080 9644200
>
> fazio at planetek.it
>
> http://www.planetek.it
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200327/38c39571/attachment.html>


More information about the geonode-users mailing list