I think you’d get better help from an nginx or let’s encrypt forum. This isn’t really a Discourse question.