global: add ssl support to all servers

This commit is contained in:
Abdullah Atta
2023-01-03 22:28:17 +05:00
parent 4a5889caee
commit 9db20e7f98
6 changed files with 39 additions and 15 deletions
+7
View File
@@ -55,6 +55,13 @@ namespace Streetwriters.Identity
{
options.Limits.MaxRequestBodySize = long.MaxValue;
options.ListenAnyIP(Servers.IdentityServer.Port);
if (Servers.IdentityServer.IsSecure)
{
options.ListenAnyIP(443, listenerOptions =>
{
listenerOptions.UseHttps(Servers.IdentityServer.SSLCertificate);
});
}
});
});
}