mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-08-18 22:37:15 +02:00
global: make ready for self hosting
This exposes a few more env vars for configuration & bypasses the Subscription backend so each user is Pro by default. This is required because there won't be any mechanism for the user to upgrade. We'll also have to disable a few things on the client side to avoid confusion.
This commit is contained in:
@@ -45,16 +45,7 @@ namespace Streetwriters.Messenger
|
||||
.UseKestrel((options) =>
|
||||
{
|
||||
options.Limits.MaxRequestBodySize = long.MaxValue;
|
||||
#if DEBUG
|
||||
options.ListenAnyIP(int.Parse(Servers.MessengerServer.Port));
|
||||
#else
|
||||
options.ListenAnyIP(443, listenerOptions =>
|
||||
{
|
||||
listenerOptions.UseHttps(Servers.OriginSSLCertificate);
|
||||
});
|
||||
options.ListenAnyIP(80);
|
||||
options.Listen(IPAddress.Parse(Servers.MessengerServer.Hostname), int.Parse(Servers.MessengerServer.Port));
|
||||
#endif
|
||||
options.ListenAnyIP(Servers.MessengerServer.Port);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user