Skip to content

Commit 97bde28

Browse files
committed
header encoding & timeouts disabled
1 parent cea9170 commit 97bde28

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

KubeConnect/Ingress/IngressProxyConfig.cs

+11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using k8s;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.Extensions.FileProviders;
34
using Microsoft.Extensions.Primitives;
45
using System;
56
using System.Collections.Generic;
67
using System.Linq;
78
using System.Text;
9+
using System.Threading;
810
using System.Threading.Tasks;
911
using Yarp.ReverseProxy.Configuration;
1012
using Yarp.ReverseProxy.Transforms;
@@ -48,6 +50,15 @@ public IngressProxyConfig(ServiceManager manager)
4850
var cluster = new ClusterConfig
4951
{
5052
ClusterId = id,
53+
HttpClient = new HttpClientConfig
54+
{
55+
RequestHeaderEncoding = "utf-8"
56+
},
57+
HttpRequest = new Yarp.ReverseProxy.Forwarder.ForwarderRequestConfig
58+
{
59+
AllowResponseBuffering = false,
60+
ActivityTimeout = Timeout.InfiniteTimeSpan,
61+
},
5162
Destinations = new Dictionary<string, DestinationConfig>
5263
{
5364
[serviceName] = new DestinationConfig

0 commit comments

Comments
 (0)