Skip to content

allowHosts not loaded from config #2147

Open

Description

@phknot

According to #2032 allowed hosts should be loaded in order of presedence config > env > default.

But using the follow config (snippet):

{
  "options": {
    "allowedHosts": "localhost,maps.example.com",
  }
}

I still get the warning in the logs. When using the TILESERVER_GL_ALLOWED_HOSTS environment variable, it does work correctly though.

Activity

  1. artemetra commented on Jun 30, 2026

    @artemetra

    I ran into the same issue and opened a PR to fix it. Also wanted to mention that --public_url works fine too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions