mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 07:00:13 +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
|
||||
Sets an authentication token to HTTP API requests.
|
||||
Can also reference a file, in which case the contents of the file are used.
|
||||
|
||||
```text
|
||||
Argument: --http-api-token
|
||||
|
|
|
|||
|
|
@ -466,6 +466,7 @@ func GetSecretsFromFiles(rootCmd *cobra.Command) {
|
|||
"notification-msteams-hook",
|
||||
"notification-gotify-token",
|
||||
"notification-url",
|
||||
"http-api-token",
|
||||
}
|
||||
for _, secret := range secrets {
|
||||
if err := getSecretFromFile(flags, secret); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue