mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-03-21 01:23:34 +00:00
sync: add redis backplane for signalr
This commit is contained in:
@@ -210,13 +210,16 @@ namespace Notesnook.API
|
||||
|
||||
services.AddHealthChecks();
|
||||
|
||||
services.AddSignalR((hub) =>
|
||||
var signalR = services.AddSignalR((hub) =>
|
||||
{
|
||||
hub.MaximumReceiveMessageSize = 100 * 1024 * 1024;
|
||||
hub.ClientTimeoutInterval = TimeSpan.FromMinutes(10);
|
||||
hub.EnableDetailedErrors = true;
|
||||
}).AddMessagePackProtocol().AddJsonProtocol();
|
||||
|
||||
if (!string.IsNullOrEmpty(Constants.SIGNALR_REDIS_CONNECTION_STRING))
|
||||
signalR.AddStackExchangeRedis(Constants.SIGNALR_REDIS_CONNECTION_STRING);
|
||||
|
||||
services.AddResponseCompression(options =>
|
||||
{
|
||||
options.EnableForHttps = true;
|
||||
|
||||
Reference in New Issue
Block a user