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

LIZMAP_PORT changed to 80 but not updated on View Metadata #24

Open
ocastillog opened this issue May 13, 2022 · 5 comments
Open

LIZMAP_PORT changed to 80 but not updated on View Metadata #24

ocastillog opened this issue May 13, 2022 · 5 comments

Comments

@ocastillog
Copy link

ocastillog commented May 13, 2022

Hello guys,

I'm using Lizmap 3.5 with Docker on Ubuntu Server 20.04

I have the following issue after changing to 80 the LIZMAP_PORT on env.default file.

Port 80 is not showing after clicking on the "View Metadata" button or in the "Information Panel" after loading the map.

The "WMS Url " and "WMTS Url" links at the "Web Map Service" section are showing 8080 port in the URL address.

@dmarteau
Copy link
Member

LIZMAP_PORT is the port mounted on the host network, in the container the lizmap service is still using the port 8080. I would suggest that you have a look at port mapping in Docker: https://docs.docker.com/config/containers/container-networking/

@ocastillog
Copy link
Author

Thank you David for your repply:

Still not sure if I have to change to port 80 on nginx or lizmap container.

Maybe I have to edit the docker-compose.yml like this?

  • ${LIZMAP_PORT}:80

The WMS and WMTS URLs are still using 8080 port.

Best regards,
Osmin Castillo

@dmarteau
Copy link
Member

Do not change the port number in the docker-compose.yml: this is the internal exposed port from inside the container.

You have an issue about proxified urls: the lizmap service is requesting the map server on the port 8080, so the server respond with WMS urls set to the 8080 port.

If you acces the directly the map server (try http://localhost:8091/ows/?service=WFS&request=GetCapabilities&MAP=test_france_parts/france_parts) then you will have the correct 8091 port number because you are accessing the service from 8091.

This is a bug from lizmap that do not know which port is used externally (from outside the docker compose stack).

@dmarteau
Copy link
Member

ATM, you should not consider the urls returned from lizmap as relevant (see the issue above). If you want direct access to the
map server OWS api, consider requesting the map service directly on its publicly exposed port.

@Gustry
Copy link
Member

Gustry commented Jul 25, 2022

If you want direct access to the map server OWS api, consider requesting the map service directly on its publicly exposed port.

This should be avoided, in the long term. QGIS Server mustn't be accessible directly indeed. Lizmap is doing ACL about projects, layers and features which are visible or not.

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

3 participants