YunoHost-Apps / facilmap_ynh

Facilmap package for YunoHost
https://facilmap.org/
GNU Affero General Public License v3.0
6 stars 3 forks source link

FacilMap 4.0.0 #20

Open cdauth opened 3 months ago

cdauth commented 3 months ago

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>.