Scripted Installation of Zenphoto for TrueNAS CORE that includes Caddy with options to run behind a reverse proxy, self-signed cert, or completely independent and managing/renewing its own certs automatically using Caddy.
This script will create a jail, install Zenphoto and Caddy using a $FQDN of your choosing, and mount the data outside the jail. This makes it easy to rebuild the jail without losing your data. It will also acquire a valid Let’s Encrypt certificate and keep it renewed using Caddy.
Reinstall is supported without having to move or backup your data.
Instructions and downloads are at