#!/usr/bin/env sh # TrueNAS deploy script for SCALE/CORE using websocket # It is recommend to use a wildcard certificate # # Websocket Documentation: https://www.truenas.com/docs/api/scale_websocket_api.html # # Tested with TrueNAS Scale - Electric Eel 24.10 # Changes certificate in the following services: # - Web UI # - FTP # - iX Apps # # The following environment variables must be set: # ------------------------------------------------ # # # API KEY # # Use the folowing URL to create a new API token: /ui/apikeys # export DEPLOY_TRUENAS_APIKEY="