Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy URL Port Issue in GeoNode 4.3 When Accessed via DDNS #12537

Open
hudjinn opened this issue Aug 29, 2024 · 0 comments
Open

Proxy URL Port Issue in GeoNode 4.3 When Accessed via DDNS #12537

hudjinn opened this issue Aug 29, 2024 · 0 comments

Comments

@hudjinn
Copy link

hudjinn commented Aug 29, 2024

Expected Behavior

GeoNode should use the correct proxy URL base from GeoServer, including the specified port, to retrieve REST attributes. Or take a attribute from .env file.

Actual Behavior

I am experiencing an issue where GeoNode is not correctly using the specified port in the proxy URL when accessed externally. Specifically, I am using a DDNS to access GeoNode externally, and I need to include an external port in the DDNS (e.g., http://example.ddns.net:9000) to correctly redirect to my PC.

While everything is functioning properly, the problem arises in the mapstore-client, which retrieves data from the API using a URL derived from the SITEURL parameter in the environment configuration. Unfortunately, the SITEURL parameter does not accept a port number, and modifying the https_port would disrupt the redirects.

As a result, the URL used by GeoNode is missing the port number, leading to issues when loading resources.

Log: nginx4sigweb_uece | ..*. - - [20/Aug/2024:23:12:14 +0000] "GET /proxy/?url=http%3A%2F%[2Fexample.ddns.net](http://2fexample.ddns.net/)%2Fapi%2Fv2%2F HTTP/1.1" 404 162 "http://example.ddns.net:9000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"

In this example, the desired URL should include the port, like this:

http%3A%2F%[2Fexample.ddns.net](http://2fexample.ddns.net/)%3A9000%2Fapi%2Fv2%2F

Specifications

  • GeoNode version: 4.3.0
  • Installation type: geonode-project:
  • Installation method: docker:
  • Platform: Ubuntu 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant