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

[BUG] Environment variables HOST_URL is not working #53

Closed
Derison opened this issue Dec 17, 2024 · 1 comment
Closed

[BUG] Environment variables HOST_URL is not working #53

Derison opened this issue Dec 17, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Derison
Copy link

Derison commented Dec 17, 2024

What is the bug?
When trying to setup a OpenSearch Map Server and using it in production, it is not possibel to adjust the HOST_URL. It'll always be http://localhost:8080 when requesting each tile.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Execute:
docker run \
    -v tiles-data:/usr/src/app/public/tiles/data/ \
    -e HOST_URL='http://example.com' \
    -p 8080:8080 \
    opensearchproject/opensearch-maps-server \
    run
  1. Check in Network tab and see that it tries to request the png on http://localhost:8080/0/0/0.png

What is the expected behavior?
Requesting the png via http://example.com/0/0/0.png

What is your host/environment?

  • OS: Docker version 27.3.1, build ce1223035a
  • Version 1.0.0
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@Derison Derison added bug Something isn't working untriaged labels Dec 17, 2024
@heemin32 heemin32 added question Further information is requested and removed bug Something isn't working untriaged labels Dec 17, 2024
@Derison
Copy link
Author

Derison commented Dec 17, 2024

Okay, I think I've solved it by myself. It looks like I misunderstood the usage of the Image. The demo.html cleared a few things up for me. Thank anyways!

@Derison Derison closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants