Skip to content

Commit

Permalink
Make the HTTP mode + poll more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ITaluone authored Jan 8, 2025
1 parent 76f9cea commit bd3b002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/http-api-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- 8080:8080
```
By default, enabling this mode prevents periodic polls (i.e. what is specified using `--interval` or `--schedule`). To run periodic updates regardless, pass `--http-api-periodic-polls`.
By default, enabling this mode prevents periodic polls (i.e. what is specified using `--interval` or `--schedule`). To run periodic updates regardless, _additionally_ pass in the switch `--http-api-periodic-polls`.

Notice that there is an environment variable named WATCHTOWER_HTTP_API_TOKEN. To prevent external services from accidentally triggering image updates, all of the requests have to contain a "Token" field, valued as the token defined in WATCHTOWER_HTTP_API_TOKEN, in their headers. In this case, there is a port bind to the host machine, allowing to request localhost:8080 to reach Watchtower. The following `curl` command would trigger an image update:

Expand Down

0 comments on commit bd3b002

Please sign in to comment.