fixed minio endpoint in config

This commit is contained in:
Matthias Bisping 2022-02-22 13:47:58 +01:00
parent bc07d5086f
commit 1ee27db153
2 changed files with 6 additions and 3 deletions

View File

@ -17,12 +17,15 @@ rabbitmq:
max_attempts: $MAX_ATTEMPTS|3 # Number of times a message may fail before being published to dead letter queue max_attempts: $MAX_ATTEMPTS|3 # Number of times a message may fail before being published to dead letter queue
minio: minio:
host: $STORAGE_ENDPOINT|localhost # MinIO host address endpoint: $STORAGE_ENDPOINT|"127.0.0.1:9000" # MinIO host address
port: $STORAGE_PORT|9000 # MinIO host port
user: $STORAGE_KEY|root # MinIO user name user: $STORAGE_KEY|root # MinIO user name
password: $STORAGE_SECRET|password # MinIO user password password: $STORAGE_SECRET|password # MinIO user password
bucket: $STORAGE_BUCKET_NAME|redaction # MinIO bucket bucket: $STORAGE_BUCKET_NAME|redaction # MinIO bucket
azure_blob_storage:
connection_string: $STORAGE_AZURECONNECTIONSTRING|"DefaultEndpointsProtocol=https;AccountName=iqserdevelopment;AccountKey=4imAbV9PYXaztSOMpIyAClg88bAZCXuXMGJG0GA1eIBpdh2PlnFGoRBnKqLy2YZUSTmZ3wJfC7tzfHtuC6FEhQ==;EndpointSuffix=core.windows.net"
container: $STORAGE_AZURECONTAINERNAME|"pyinfra-test-storage"
service: service:
logging_level: $LOGGING_LEVEL_ROOT|DEBUG # Logging level for service logger logging_level: $LOGGING_LEVEL_ROOT|DEBUG # Logging level for service logger
name: $SERVICE_NAME|pyinfra-service-v1 # Name of the service in the kubernetes cluster name: $SERVICE_NAME|pyinfra-service-v1 # Name of the service in the kubernetes cluster

View File

@ -22,7 +22,7 @@ def get_minio_client(access_key=None, secret_key=None) -> Minio:
secret_key = CONFIG.minio.password if secret_key is None else secret_key secret_key = CONFIG.minio.password if secret_key is None else secret_key
# TODO: secure=True/False? # TODO: secure=True/False?
return Minio(f"{CONFIG.minio.host}:{CONFIG.minio.port}", access_key=access_key, secret_key=secret_key, secure=False) return Minio(CONFIG.minio.endpoint, access_key=access_key, secret_key=secret_key, secure=False)
class MinioHandle(StorageHandle): class MinioHandle(StorageHandle):