Our application is asp.net core app, we have migrated it to a guest executable and exposed an endpoint like below.
.ConfigureKestrel(serverOptions =>
{
var port = Convert.ToInt32(configurationRoot["ApiConfig:ApiSslPortNumber"]);
serverOptions.Limits.MaxRequestBodySize = 51200 * 1024;
serverOptions.Limits.MaxConcurrentConnections = null;
serverOptions.Limits.MaxConcurrentUpgradedConnections = null;
serverOptions.Limits.MinRequestBodyDataRate = null;
serverOptions.Listen(IPAddress.IPv6Any, port, (listenOptions) =>
{
var httpsOptions = new HttpsConnectionAdapterOptions
{
ClientCertificateMode = ClientCertificateMode.AllowCertificate,
CheckCertificateRevocation = true,
ServerCertificate = sslCert
};
//https ssl cert configuration
listenOptions.UseHttps(httpsOptions);
listenOptions.NoDelay = true;
});
})
In service manifest file, we have added below line as we have a requirement to populate ReplicaAddress - as we are monitoring ReplicaAddress from other service.
<Endpoint UriScheme="https" Name="ServiceEndpoint" Type="Input" Port="443" />
Question is can exposing two endpoints with same port from service fabric would cause any problem?
If it does not cause any problem, we can proceed with change.
if it does, we need to find a way to merge these endpoints into a single one.
Would appreciate if you have any such github examples