Small utility to auto update the TrueNAS managed applications
1.3K
It's a small utility that uses the TrueNAS jsonrpc API to keep an eye on the TrueNAS managed applications and update those once they have a new available version.
The URL that points to your TrueNAS instance, is in a WebSocket format. Some actual examples are:
ws://192.168.0.10/api/current - if your TrueNAS is configured to allow API calls on the non-ssl port, this is what you need.
wss://192.168.0.10/api/current - if your TrueNAS allows traffic on the ssl port, this is the way to go.
The examples above refer to non-ssl port as 80 and ssl port as 443.
If you changed your default ports (ie: System -> General Settings -> GUI Settings -> Web Interface HTTP Port && Web Interface HTTPS Port),
then you'll have to add the port in the examples above.
As an example, if you changed the 80 port to 8080 and 443 to 8443, your url should look like the following:
ws://192.168.0.10:8080/api/currentwss://192.168.0.10:8443/api/currentTo make this work, it's recommended to use a User API Token. This can be accessed by navigating to Credentials -> Users -> Api Keys (top-right corner).
The recommended way to do this, is to create a specific user (called service account) only for this specific purpose. This user will have a group that will have a list of limited privileges, strictly for this job. To do so, follow the steps:
The easiest, but not recommended way to do this, is by issuing a token for your truenas_admin user.
Just export the two environment variables and run the application:
export TRUENAS_URL="<your url>"
export TRUENAS_API_KEY="<the token you copied above>"
CHECK_DELAY; default: "6h")
APP_WHITELIST; default: "")
APP_BLACKLIST; default: "")
The timezone of the container can be configured by using the TZ environment variable.
Content type
Image
Digest
sha256:30d6d50e6…
Size
8.9 MB
Last updated
6 months ago
docker pull yottta/truewatcher:v0.0.9