diff --git a/DysonNetwork.Gateway/RegistryProxyConfigProvider.cs b/DysonNetwork.Gateway/RegistryProxyConfigProvider.cs index 7988561..2efa79c 100644 --- a/DysonNetwork.Gateway/RegistryProxyConfigProvider.cs +++ b/DysonNetwork.Gateway/RegistryProxyConfigProvider.cs @@ -91,10 +91,6 @@ public class RegistryProxyConfigProvider : IProxyConfigProvider, IDisposable { { "destination1", new DestinationConfig { Address = serviceUrl } } }, - HttpRequest = new ForwarderRequestConfig - { - ActivityTimeout = directRoute.IsWebSocket ? TimeSpan.FromHours(24) : TimeSpan.FromMinutes(2) - } }; clusters.Add(cluster); } @@ -104,7 +100,6 @@ public class RegistryProxyConfigProvider : IProxyConfigProvider, IDisposable RouteId = $"direct-{directRoute.Service}-{directRoute.Path.Replace("/", "-")}", ClusterId = directRoute.Service, Match = new RouteMatch { Path = directRoute.Path }, - Timeout = directRoute.IsWebSocket ? null : TimeSpan.FromSeconds(5), }; routes.Add(route); _logger.LogInformation(" Added Direct Route: {Path} -> {Service}", directRoute.Path, @@ -232,7 +227,6 @@ public class RegistryProxyConfigProvider : IProxyConfigProvider, IDisposable { public required string Path { get; set; } public required string Service { get; set; } - public bool IsWebSocket { get; set; } = false; } public virtual void Dispose() @@ -242,4 +236,4 @@ public class RegistryProxyConfigProvider : IProxyConfigProvider, IDisposable _watchCts.Cancel(); _watchCts.Dispose(); } -} \ No newline at end of file +} diff --git a/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs b/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs index b36fd81..d147b14 100644 --- a/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs +++ b/DysonNetwork.Gateway/Startup/ServiceCollectionExtensions.cs @@ -18,7 +18,6 @@ public static class ServiceCollectionExtensions var caCert = X509CertificateLoader.LoadCertificateFromFile(configuration["CaCert"]!); handler.SslOptions = new SslClientAuthenticationOptions { - // TODO: check the ca in the future, for now just trust it, i need sleep RemoteCertificateValidationCallback = (sender, cert, chain, errors) => true }; }); @@ -28,4 +27,4 @@ public static class ServiceCollectionExtensions return services; } -} \ No newline at end of file +}