GeoNode / geonode-project

A django template project for creating custom GeoNode projects.
http://geonode.org
78 stars 172 forks source link

Custom port is ignored on Docker #386

Open frafra opened 1 year ago

frafra commented 1 year ago

I choose 5080 as public port.

Here is my .env file:

[...]
SITEURL=http://localhost:5080/
[...]
HTTP_PORT=5080
[...]
GEOSERVER_WEB_UI_LOCATION=http://localhost:5080/geoserver/
GEOSERVER_PUBLIC_LOCATION=http://localhost:5080/geoserver/
[...]

Login is broken, since the login button points to http://localhost/geoserver/j_spring_security_check, and the OAuth2 login button points to http://localhost/geoserver/web/j_spring_oauth2_geonode_login.

frafra commented 1 year ago

GEONODE_LB_PORT= should be changed too to match the new port.

I noticed another issue after that: the home page cannot load properly, as shown in this call:

GET http://localhost:5080/proxy/?url=http://localhost/api/v2/resources?page=1&page_size=20&filter%7Bmetadata_only%7D=false&include=executions

Why is such proxy needed?