Refactor SSL nginx config