Yes, it’s a Unifi SDN.
The error is as followed: letsencrypt: error: unrecognized arguments: --preferred-challenges http
Otherwise, I’m really unable to say if it’s apache or nginx, I’m pretty sure it’s apache as I don’t have nginx installed. I only had to install a package to get it running.