fix: 修复本地部署 Minio 环境变量未生效问题

This commit is contained in:
zstar 2025-06-12 19:08:34 +08:00
parent d299e3c68e
commit 4116579f17
1 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@ def is_running_in_docker():
if is_running_in_docker(): if is_running_in_docker():
MINIO_HOST = "minio" MINIO_HOST = "minio"
MINIO_VISIT_HOST = os.getenv("MINIO_VISIT_HOST", "localhost") MINIO_VISIT_HOST = os.getenv("MINIO_VISIT_HOST", "localhost")
MINIO_PORT = 9000 MINIO_PORT = int(os.getenv("MINIO_PORT", "9000"))
else: else:
MINIO_HOST = "localhost" MINIO_HOST = os.getenv("MINIO_HOST", "localhost")
MINIO_VISIT_HOST = "localhost" MINIO_VISIT_HOST = os.getenv("MINIO_VISIT_HOST", "localhost")
MINIO_PORT = int(os.getenv("MINIO_PORT", "9000")) MINIO_PORT = int(os.getenv("MINIO_PORT", "9000"))