diff --git a/src/Agent/Insight.Agent/Program.cs b/src/Agent/Insight.Agent/Program.cs index e102bae..d75f668 100644 --- a/src/Agent/Insight.Agent/Program.cs +++ b/src/Agent/Insight.Agent/Program.cs @@ -58,6 +58,8 @@ internal class Program options.Port = host.Configuration.GetValue(Appsettings.ServerPort) ?? throw new Exception($"{Appsettings.ServerPort} value not set (appsettings)"); options.Keepalive = 10000; options.Timeout = 30000; + + options.Compression = true; options.Encryption = Encryption.Tls12; options.UseSerializer, IMessage>(); diff --git a/src/Core/Insight.Domain/Insight.Domain.csproj b/src/Core/Insight.Domain/Insight.Domain.csproj index 7231fd8..1ffd066 100644 --- a/src/Core/Insight.Domain/Insight.Domain.csproj +++ b/src/Core/Insight.Domain/Insight.Domain.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Server/Insight.Server/Program.cs b/src/Server/Insight.Server/Program.cs index 0000678..82d4670 100644 --- a/src/Server/Insight.Server/Program.cs +++ b/src/Server/Insight.Server/Program.cs @@ -66,6 +66,7 @@ internal class Program options.Timeout = 30000; options.Backlog = 128; + options.Compression = true; options.Encryption = Encryption.Tls12; options.Certificate = host.Configuration.GetValue(Appsettings.AgentServerCertificate) ?? throw new Exception($"{Appsettings.AgentServerCertificate} value not set (appsettings)"); options.CertificatePassword = host.Configuration.GetValue(Appsettings.AgentServerCertificatePassword) ?? throw new Exception($"{Appsettings.AgentServerCertificatePassword} value not set (appsettings)"); @@ -104,6 +105,7 @@ internal class Program options.Timeout = 30000; options.Backlog = 128; + options.Compression = true; options.Encryption = Encryption.Tls12; options.Certificate = host.Configuration.GetValue(Appsettings.WebServerCertificate) ?? throw new Exception($"{Appsettings.WebServerCertificate} value not set (appsettings)"); options.CertificatePassword = host.Configuration.GetValue(Appsettings.WebServerCertificatePassword) ?? throw new Exception($"{Appsettings.WebServerCertificatePassword} value not set (appsettings)"); diff --git a/src/Web/Insight.Web/Program.cs b/src/Web/Insight.Web/Program.cs index d90a4d3..bd280d7 100644 --- a/src/Web/Insight.Web/Program.cs +++ b/src/Web/Insight.Web/Program.cs @@ -66,6 +66,8 @@ public class Program options.Port = builder.Configuration.GetValue(Appsettings.ServerPort) ?? throw new Exception($"{Appsettings.ServerPort} value not set (appsettings)"); options.Keepalive = 10000; options.Timeout = 30000; + + options.Compression = true; options.Encryption = Encryption.Tls12; options.UseSerializer, IMessage>();