geonode-project icon indicating copy to clipboard operation
geonode-project copied to clipboard

Custom port is ignored on Docker

Open frafra opened this issue 2 years ago • 1 comments

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 avatar Nov 22 '22 17:11 frafra

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?

frafra avatar Dec 05 '22 16:12 frafra