add required bearer auth token
This commit is contained in:
parent
5da9d04d7e
commit
02151e49b8
3 changed files with 72 additions and 10 deletions
|
|
@ -10,7 +10,7 @@ See [the prometheus docs][0] for more information on the HTTP service discovery
|
|||
|
||||
## Example
|
||||
|
||||
`curl http://tailscalesd:9242/`
|
||||
`curl -H "Authorization: Bearer supersecret" http://tailscalesd:9242`
|
||||
|
||||
``` json
|
||||
[
|
||||
|
|
@ -59,6 +59,7 @@ Configuration values can be set using environment variables, or optionally loade
|
|||
- **host** (`TAILSCALESD_HOST`): The host address on which the application will bind (designed to be used in a container, BE CAREFUL!). Default is `0.0.0.0`.
|
||||
- **port** (`TAILSCALESD_PORT`): The port number on which the application will be accessible. Default is `9242`.
|
||||
- **interval** (`TAILSCALESD_INTERVAL`): The interval on which the Tailscale API is polled in seconds. Default is `60`.
|
||||
- **bearer_token** (`TAILSCALESD_BEARER_TOKEN`): The authentication token passed in the Authorization header (required).
|
||||
- **tailnet** (`TAILSCALESD_TAILNET`): The Tailscale tailnet identifier (required).
|
||||
- **api_key** (`TAILSCALESD_API_KEY`): The Tailscale API key (required).
|
||||
|
||||
|
|
@ -72,6 +73,7 @@ You can also specify an environment file to load configuration values. The path
|
|||
TAILSCALESD_TAILNET=my-tailnet
|
||||
TAILSCALESD_API_KEY=my-api-key
|
||||
TAILSCALESD_HOST=127.0.0.1
|
||||
TAILSCALESD_BEARER_TOKEN=supersecret
|
||||
```
|
||||
|
||||
### Monitoring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue