I would go with some miss configuration and agree with @Falco that the first step would be to go back to a vainilla/supported installation. That includes already the Let’s Encrypt and works with Nginx, so you’re not adding any value by doing it yourself.