TL;DR

This snippet installs Let’s Encrypt TLS certificate, ensures it is renewed, and makes sure that UniFi is resolved to LAN IP when accessed via FQDN in TLS certificate.

Environment

Configuration

  • Follow installation instructions in udm-le Readme
  • Add A DNS record pointing to UniFi device LAN IP in Policy Engine