fix: 修复本地部署 Minio 环境变量未生效问题
This commit is contained in:
parent
d299e3c68e
commit
4116579f17
|
@ -19,10 +19,10 @@ def is_running_in_docker():
|
|||
if is_running_in_docker():
|
||||
MINIO_HOST = "minio"
|
||||
MINIO_VISIT_HOST = os.getenv("MINIO_VISIT_HOST", "localhost")
|
||||
MINIO_PORT = 9000
|
||||
MINIO_PORT = int(os.getenv("MINIO_PORT", "9000"))
|
||||
else:
|
||||
MINIO_HOST = "localhost"
|
||||
MINIO_VISIT_HOST = "localhost"
|
||||
MINIO_HOST = os.getenv("MINIO_HOST", "localhost")
|
||||
MINIO_VISIT_HOST = os.getenv("MINIO_VISIT_HOST", "localhost")
|
||||
MINIO_PORT = int(os.getenv("MINIO_PORT", "9000"))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue