Fixes ES address when deploying with SSL