[GeoNode-users] Geonode url under /geonode path

Teresa Fazio fazio at planetek.it
Thu Apr 2 04:08:35 PDT 2020


Hi Gus,
Thanks for your replay.
I'm using spcgeonode on docker too.
I configure spcgeonode.conf file under nginx to point to /geonode location and I view geonode homepage correctly.
Then I changed urls.py file of geonode directory to map other links like layers, users,...pages.
Now I'm trying to figure out how to modify other urls to make everything work.
For example api urls to get layers list.
Can you help me?
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<mailto:fazio at planetek.it>
http://www.planetek.it<http://www.planetek.it/>

From: Silvia Salsone
Sent: mercoledì 1 aprile 2020 12:38
To: Teresa Fazio <fazio at planetek.it>
Subject: I: [GeoNode-users] Geonode url under /geonode path



________________________________
Da: geonode-users <geonode-users-bounces at lists.osgeo.org<mailto:geonode-users-bounces at lists.osgeo.org>> per conto di Gus MacAulay <gusmacaulay at gmail.com<mailto:gusmacaulay at gmail.com>>
Inviato: venerdì 27 marzo 2020 03:31
A: geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org> <geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>>
Oggetto: Re: [GeoNode-users] Geonode url under /geonode path

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<mailto: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<mailto: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<mailto:fazio at planetek.it>
http://www.planetek.it<http://www.planetek.it/>

_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/geonode-users
_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto: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/20200402/55fc4bcc/attachment-0001.html>


More information about the geonode-users mailing list