def _set_base(self, default_base=None):
base = self._get_setting('<STR_LIT>')<EOL>version = self._get_setting('<STR_LIT>')<EOL>if base is None:<EOL><INDENT>if default_base is None:<EOL><INDENT>base = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>base = default_base<EOL><DEDENT><DEDENT>if version is None:<EOL><INDENT>version = "<STR_LIT>"<EOL><DEDENT>nohttps = self._get_setting('<STR_LIT>')<EOL>if nohttps is None:<EOL><INDENT>nohttps = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>nohttps = "<STR_LIT>"<EOL><DEDENT>self._base = "<STR_LIT>" %(nohttps, base)<EOL>self._version = version<EOL>self.base = "<STR_LIT>" %(nohttps, base.strip('<STR_LIT:/>'), version)<EOL>
set the API base or default to use Docker Hub. The user is able
           to set the base, api version, and protocol via a settings file
           of environment variables:

           SREGISTRY_DOCKERHUB_BASE: defaults to index.docker.io
           SREGISTRY_DOCKERHUB_VERSION: defaults to v1
           SREGISTRY_DOCKERHUB_NO_HTTPS: defaults to not set (so https)