Installing Seafile with https behind Squid without nginx/apache


I want to install a new Seafile server behind a Pfsense firewall that uses a squid proxy with a valid Letsencrypt certificate. Now I think about whether it is possible and above all safe to install the Seafile server without Nginx or Apache? Has anyone of you done this before or is that a nogo?