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

FacilMap 4.0.0 #20

Open
cdauth opened this issue Mar 29, 2024 · 0 comments
Open

FacilMap 4.0.0 #20

cdauth opened this issue Mar 29, 2024 · 0 comments

Comments

@cdauth
Copy link
Collaborator

cdauth commented Mar 29, 2024

FacilMap 4.0.0 has been released.

There are some changes that I think might affect the YNH build.

You can now specify a LIMA_LABS_TOKEN API token from https://maps.lima-labs.com/ to enable the new Lima Labs default map style.

The app backend now needs to be aware of its own URL for some functionality. There are different ways how FacilMap can detect the base URL:

  1. Either it auto-detects it from the Host header
  2. Or it detects it from the X-Forwarded-* headers. For this to work, TRUST_PROXY needs to be true or a comma-separated list of trusted IP subnets.
  3. Or the base URL is specified manually using BASE_URL.
    I don't know the details of how the YNH reverse proxy works, but usually I would say that option 2 is the most suitable one. You can test whether the configuration works by running curl https://facilmap.org/_app/opensearch.xml (under whatever URL your FacilMap runs) and see whether the right base URL is returned in <moz:SearchForm>.
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

1 participant