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

Fetching styles fails when running on other port than 80 #955

Open
mfbehrens opened this issue Nov 6, 2024 · 1 comment
Open

Fetching styles fails when running on other port than 80 #955

mfbehrens opened this issue Nov 6, 2024 · 1 comment

Comments

@mfbehrens
Copy link

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:

@zstadler
Copy link
Collaborator

zstadler commented Nov 7, 2024

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.

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

2 participants