You can try to deploy seafile server with docker. It would automatically configure nginx and https for you.