maputnik icon indicating copy to clipboard operation
maputnik copied to clipboard

Fetching styles fails when running on other port than 80

Open mfbehrens opened this issue 1 year ago • 1 comments

Maputnik version:v2.1.1 Browser: Firefox OS: Linux

Description of the bug: When I start up the app it fetches its styles from http://localhost/styles/ however my app runs on http://localhost:8888/

Steps to reproduce the behavior:

  1. Run maputnik in a podman container at port 8888
  2. Start the app
  3. The styles get queried from http://localhost/styles/ and not http://localhost:8888/styles/

Style file or style URL:

Screenshots:

mfbehrens avatar Nov 06 '24 23:11 mfbehrens

As far as I understand, /styles is applicable to Maputnik Desktop . If you do not use Maputnik Desktop, I believe you can safely ignore that error message, as I do.

As for port numbers, I assume that by "Run maputnik in a podman container at port 8888" you mean that Maputnik's port 80 is published to the host as port 8888. This is usually done using -p 8888:80 or an equivalent. It also means that port 8888 is available at the host and it "redirects" to port 80 within the container. On the other hand, when Maputnik is run in a the container and it opens a link to localhost, it connects to the ports within the container, where port 8888 was not created.

zstadler avatar Nov 07 '24 08:11 zstadler