mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-21 06:33:30 +00:00
docs: Clarify Supervisor envvars exposure via label
Connects-to: #830 Change-type: patch Signed-off-by: Heds Simons <heds@whaleway.net>
This commit is contained in:
parent
33549aa344
commit
79e7fb0b93
@ -12,6 +12,8 @@ Only Supervisors after version 1.1.0 have this functionality, and some of the en
|
||||
|
||||
The supervisor exposes an HTTP API on port 48484 (`BALENA_SUPERVISOR_PORT`).
|
||||
|
||||
To enable these Supervisor environment variables, the `io.balena.features.supervisor-api` label must be applied for each service that requires them. See [here](https://www.balena.io/docs/learn/develop/multicontainer/#labels) for further details.
|
||||
|
||||
**All endpoints require an apikey parameter, which is exposed to the application as `BALENA_SUPERVISOR_API_KEY`.**
|
||||
|
||||
The full address for the API, i.e. `"http://127.0.0.1:48484"`, is available as `BALENA_SUPERVISOR_ADDRESS`. **Always use these variables when communicating via the API, since address and port could change**.
|
||||
|
Loading…
Reference in New Issue
Block a user