make OSM API connection details configurable via env vars

This commit is contained in:
Martin Raifer
2023-02-25 18:03:09 +01:00
parent 574cba9ed9
commit 050c164a60
3 changed files with 42 additions and 5 deletions
+9
View File
@@ -101,6 +101,15 @@ In addition, the following parameters are available as **URL query parameters**:
* __`gpx`__ - Expects a trace ID of a [public gps trace](https://www.openstreetmap.org/traces) uploaded on OpenStreetMap.<br/>
_Example:_ `https://www.openstreetmap.org/edit?editor=id&gpx=4009513`<br/>
## Environment variables
Environment variables or a dotenv file can be used to configure certain aspects of iD at build time.
* __`ID_PRESETS_CDN_URL`__ - The URL where iD should fetch it's tagging presets from. Needs to point to a CORS enabled web server which is serving the `package.json` and `dist` folder of a repository built on [`@ideditor/schema-builder`](https://github.com/ideditor/schema-builder).
* __`ID_API_CONNECTION_URL`__, __`ID_API_CONNECTION_CLIENT_ID`__, __`ID_API_CONNECTION_CLIENT_SECRET`__ - custom [Oauth2](https://wiki.openstreetmap.org/wiki/OAuth#OAuth_2.0_2) connection details to an OSM API server
* __`ID_API_CONNECTION`__ - either `live` or `dev`, if only either one should be made offered for editing
## CSS selectors
iD has a documented and stable set of classes that can be used to apply style or