mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 08:30:05 +00:00
wiki: sharing place details with the TREK Places API
What is sent and when, what never is, how values are checked before anyone sees them, and where an admin switches it off or takes it back. The new TREK_PLACES_CONTRIBUTE variable is listed with the compose file and the chart.
This commit is contained in:
@@ -392,6 +392,7 @@ TREK's own place index, the [TREK Places API](TREK-Places-API), answers the sugg
|
||||
|-----------------------|-------------|---------|
|
||||
| `TREK_PLACES_ENABLED` | Set to `false` to stop asking the index. Search then works as it did before 4.3.0: OpenStreetMap on an install without a key, the keyed provider (Google or Amap) when one is set, the Overpass mirrors for the category buttons and for the OpenStreetMap ways and horse routes Tours reads, and no places downloaded for offline search. It is a boolean switch like the others on this page: `false`, `0`, `off` and `no` in any casing switch it off, a value that is not boolean-like aborts startup, and unset or blank leaves the index on. | on |
|
||||
| `TREK_PLACES_URL` | Base URL of a copy of the service you run yourself; it has to answer the same `/v1` API. Unset or blank uses the public service. A trailing slash is stripped, and a value that is not a full URL aborts startup. It is configuration rather than user input and is not run through the SSRF guard, so an address on your LAN or Docker network works without `ALLOW_INTERNAL_NETWORK`. | `https://places.liketrek.com` |
|
||||
| `TREK_PLACES_CONTRIBUTE` | Whether an admin may let this installation send the place details its users typed in (website, phone, e-mail, opening hours, description, picture) to the TREK Places API. `admin` leaves the choice to **Admin > Settings**, where it stays off until an admin agrees; `off` takes the choice away and nothing is sent. Values the assistant, a plugin, an import or a provider filled in are never sent, and neither is anything from a development, test or demo instance, one with its own `TREK_PLACES_URL`, or one with `TREK_SERVICES=off`. | `admin` |
|
||||
| `TREK_SERVICES` | `auto` lets the installation register itself with the TREK services on first use and keep its key in the database; `off` sends no key, and searches use the shared pool. See [Installation key and daily allowance](TREK-Places-API#installation-key-and-daily-allowance). | `auto` |
|
||||
| `TREK_SERVICES_KEY` | A key issued to you for this installation. Wins over the stored key and turns self-registration off. A value that is not a key aborts startup. | none |
|
||||
| `TREK_SERVICES_HOSTS` | Comma-separated hosts that receive the installation key over https. | `places.liketrek.com,photon.liketrek.com,valhalla.liketrek.com` |
|
||||
|
||||
Reference in New Issue
Block a user