diff --git a/src/BL/Services/MinioHelper.cs b/src/BL/Services/MinioHelper.cs index 96308e5e9..8178e3301 100644 --- a/src/BL/Services/MinioHelper.cs +++ b/src/BL/Services/MinioHelper.cs @@ -265,9 +265,19 @@ public async Task FetchAndStoreObject(string url, string bucketName, strin { - using (var httpClient = new HttpClient()) + var proxy = new System.Net.WebProxy("http://192.168.10.15:8080"); + + // Configure the HttpClientHandler to use the proxy + var handler = new HttpClientHandler { - + Proxy = proxy, + UseProxy = true + }; + + // Create the HttpClient with the handler + using (var httpClient = new HttpClient(handler)) + { + Log.Information("{Funtion} Step 1 url {Url}","FetchAndStoreObject", url); var response = await httpClient.GetAsync(url); if (!response.IsSuccessStatusCode)