minio?

r7knjye2  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(285)

我想将minio设置为django应用程序对象存储,并在我的计算机(localhost)上测试此模块的功能。我遵循django minio后端中的指令,但是我得到了以下错误。
raise maxretryerror(\u pool,url,error or responseerror(cause))urllib3.exceptions.maxretryerror:httpsconnectionpool(host='127.0.0.1',port=9000):url超过最大重试次数:/django backend dev public?location=(由sslerror引起(sslerror(1,[ssl:wrong\u version\u number]wrong version number(\u ssl.c:1091)))
这些是我添加到settings.py文件中的行。

INSTALLED_APPS = [

...
    'rest_framework',
    'django_minio_backend',
...
]
MINIO_CONSISTENCY_CHECK_ON_START = True
MINIO_ENDPOINT = '127.0.0.1:9000'
MINIO_ACCESS_KEY = 'minioadmin '
MINIO_SECRET_KEY = 'minioadmin '
MINIO_USE_HTTPS = True
MINIO_URL_EXPIRY_HOURS = timedelta(days=1)  # Default is 7 days (longest) if not defined
MINIO_CONSISTENCY_CHECK_ON_START = True
MINIO_PRIVATE_BUCKETS = [
    'django-backend-dev-private',
]
MINIO_PUBLIC_BUCKETS = [
     'django-backend-dev-public',
]
MINIO_POLICY_HOOKS: List[Tuple[str, dict]] = [] here

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题