Browse Source

Add minio port to appsettings

master
Daniel Gyulai 4 years ago
parent
commit
fbdb7c0ebe
  1. 5
      CoviDok/Data/StorageProviders/MinioProvider.cs
  2. 2
      helm/covidok/templates/appsettings.yaml

5
CoviDok/Data/StorageProviders/MinioProvider.cs

@ -32,7 +32,10 @@ namespace CoviDok.Data.StorageProviders
public async Task<bool> NamespaceExists(string ns)
{
return await Client.BucketExistsAsync(ns);
Console.WriteLine("MinioProvider:NamespaceExists - Checking " + ns);
bool exists = await Client.BucketExistsAsync(ns);
Console.WriteLine("MinioProvider:NamespaceExists - " + ns + " exists" );
return exists;
}
public async Task Upload(string ns, string objectname, Stream data, long size)

2
helm/covidok/templates/appsettings.yaml

@ -10,7 +10,7 @@ data:
"RedisHost": "{{ include "covidok.redis" . }}:{{ .Values.config.redis.port }}"
},
"MinioSettings": {
"HostName": "{{ include "covidok.minio" . }}",
"HostName": "{{ include "covidok.minio" . }}:9000",
"AccessKey": "{{ .Values.config.minio.accesskey }}",
"SecretKey": "{{ .Values.config.minio.secretkey }}"
}

Loading…
Cancel
Save