mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
feat: enabled loading http-api-token from file
This commit is contained in:
parent
139f67270b
commit
d93c46a00f
2 changed files with 2 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ Environment Variable: WATCHTOWER_HTTP_API_UPDATE
|
||||||
|
|
||||||
## HTTP API Token
|
## HTTP API Token
|
||||||
Sets an authentication token to HTTP API requests.
|
Sets an authentication token to HTTP API requests.
|
||||||
|
Can also reference a file, in which case the contents of the file are used.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
Argument: --http-api-token
|
Argument: --http-api-token
|
||||||
|
|
|
||||||
|
|
@ -466,6 +466,7 @@ func GetSecretsFromFiles(rootCmd *cobra.Command) {
|
||||||
"notification-msteams-hook",
|
"notification-msteams-hook",
|
||||||
"notification-gotify-token",
|
"notification-gotify-token",
|
||||||
"notification-url",
|
"notification-url",
|
||||||
|
"http-api-token",
|
||||||
}
|
}
|
||||||
for _, secret := range secrets {
|
for _, secret := range secrets {
|
||||||
if err := getSecretFromFile(flags, secret); err != nil {
|
if err := getSecretFromFile(flags, secret); err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue