Make sure that we use the external endpoint

This needs to be https and 5001.