Geonode url under /geonode path

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Geonode url under /geonode path

Terry

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

[hidden email]

http://www.planetek.it

 


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

xbartolone
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 <[hidden email]>, 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

[hidden email]

http://www.planetek.it

 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

toni_schoenbuchner
In reply to this post by Terry
Hi Teresa,

I do not have a copy an paste example for you, but would start
changing the server directive in nginx.conf for location /.
(/etc/nginx/sites-available/geonode)

For sure there might be other things like oauth2 endpoints 
and Django settings to configure....

Just thinking out loud. Would the use of a subdomain an option
for you? 


Cheers,

Toni

Am 25.03.2020 um 20:00 schrieb [hidden email]:

Hi all,
How can I publish my geonode app under url like
 
 
Thanks in advance


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

Gus MacAulay
In reply to this post by xbartolone
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 <[hidden email]> 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 <[hidden email]>, 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

[hidden email]

http://www.planetek.it

 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

Terry
In reply to this post by toni_schoenbuchner

Hi Toni,

subdomain option is not applicable in my case because of geonode has to be integrated in SSO with other apps under same domain.

I’m trying to solve changing nginx and url patterns (in urls.py file) but I I'm afraid of not  covering everything like oauth2 endpoints…

 

Thanks

 

Teresa Fazio

Technical Specialist

Government & Security SBU

 

Planetek Italia S.r.l.

Via Massaua, 12

I-70132 Bari BA - Italy

Tel. +39 080 9644200

[hidden email]

http://www.planetek.it

 

From: Toni Schönbuchner [mailto:[hidden email]]
Sent: mercoledì 25 marzo 2020 21:10
To: Teresa Fazio <[hidden email]>
Cc: geonode-users <[hidden email]>
Subject: Re: Geonode url under /geonode path

 

Hi Teresa,

 

I do not have a copy an paste example for you, but would start

changing the server directive in nginx.conf for location /.

(/etc/nginx/sites-available/geonode)

 

For sure there might be other things like oauth2 endpoints 

and Django settings to configure....

 

Just thinking out loud. Would the use of a subdomain an option

for you? 

 

 

Cheers,

 

Toni



Am 25.03.2020 um 20:00 schrieb [hidden email]:

 

Hi all,

How can I publish my geonode app under url like

 

 

Thanks in advance

 


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

Terry
In reply to this post by Gus MacAulay

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

[hidden email]

http://www.planetek.it

 

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

 

 

 


Da: geonode-users <[hidden email]> per conto di Gus MacAulay <[hidden email]>
Inviato: venerdì 27 marzo 2020 03:31
A: [hidden email] <[hidden email]>
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 <[hidden email]> 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 <[hidden email]>, 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

[hidden email]

http://www.planetek.it

 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode url under /geonode path

Gus MacAulay
Hi Teresa,

I didn't modify the urls.py - I did set the docker environment variables such as SITEURL and GEONODE_LB_HOST to point to the /geonode/ domain.  My api is available under /geonode/api

Regards
Gus

On Thu, 2 Apr 2020 at 22:08, Teresa Fazio <[hidden email]> wrote:

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

[hidden email]

http://www.planetek.it

 

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

 

 

 


Da: geonode-users <[hidden email]> per conto di Gus MacAulay <[hidden email]>
Inviato: venerdì 27 marzo 2020 03:31
A: [hidden email] <[hidden email]>
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 <[hidden email]> 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 <[hidden email]>, 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

[hidden email]

http://www.planetek.it

 

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users