global: add ssl support to all servers

This commit is contained in:
Abdullah Atta committed 2023-01-03 22:28:17 +05:00
1 parent 4a5889caee
commit 9db20e7f98
6 files changed
+39 -15

No files matched your search

+7
View File
@@ -50,6 +50,13 @@ namespace Notesnook.API
{
options.Limits.MaxRequestBodySize = long.MaxValue;
options.ListenAnyIP(Servers.NotesnookAPI.Port);
if (Servers.NotesnookAPI.IsSecure)
{
options.ListenAnyIP(443, listenerOptions =>
{
listenerOptions.UseHttps(Servers.NotesnookAPI.SSLCertificate);
});
}
});
});
}