code: def _get_base():
          
          try:
              name, _aliaslist, _addresslist = socket.gethostbyname_ex('deploy')
          except socket.gaierror:
              name = 'deploy'
          fallback = 'https://{name}/'.format(name=name)
          return os.environ.get('VELOCIRAPTOR_URL', fallback)
docs: if 'deploy' resolves in this environment, use the hostname for which
          that name resolves.
          Override with 'VELOCIRAPTOR_URL'