Former-commit-id: 54e7ce8808e2f2b6c10779d2cf24017885801d84
Former-commit-id: 75ae713cc7e79af885c7b180c96c2f713d88bc0e
1.0
wanggang 5 years ago
parent 1d1798d461
commit a2efd776b6

@ -183,27 +183,6 @@ namespace Infrastructure.Web
signalRBuilder = signalRBuilder.AddStackExchangeRedis(Configuration.GetConnectionString("redis"), o => signalRBuilder = signalRBuilder.AddStackExchangeRedis(Configuration.GetConnectionString("redis"), o =>
{ {
o.Configuration.ChannelPrefix = this.Configuration.GetValue("BasePath", Assembly.GetEntryAssembly().GetName().Name); o.Configuration.ChannelPrefix = this.Configuration.GetValue("BasePath", Assembly.GetEntryAssembly().GetName().Name);
//o.ConnectionFactory = async writer =>
//{
// var config = new ConfigurationOptions
// {
// AbortOnConnectFail = false
// };
// config.EndPoints.Add(IPAddress.Loopback, 0);
// config.SetDefaultPorts();
// var connection = await ConnectionMultiplexer.ConnectAsync(config, writer);
// connection.ConnectionFailed += (_, e) =>
// {
// Console.WriteLine("Connection to Redis failed.");
// };
// if (!connection.IsConnected)
// {
// Console.WriteLine("Did not connect to Redis.");
// }
// return connection;
//};
}); });
} }

@ -65,8 +65,7 @@ namespace Platform
} }
else else
{ {
var connectionString = Configuration.GetConnectionString("job.sqlite"); services.AddHangfire(o => o.UseSQLiteStorage("job.db"));
services.AddHangfire(o => o.UseSQLiteStorage(connectionString));
} }
services.AddReverseProxy().LoadFromConfig(Configuration.GetSection("ReverseProxy")); services.AddReverseProxy().LoadFromConfig(Configuration.GetSection("ReverseProxy"));
} }

@ -4,5 +4,6 @@
"cache": "", "cache": "",
"fileserver": "", "fileserver": "",
"jobdb": "" "jobdb": ""
} },
"useRedisSignalR": "false"
} }

@ -23,7 +23,6 @@
"sqlite": "Data Source=iotcenter.db", "sqlite": "Data Source=iotcenter.db",
"mysql": "Server=localhost;Port=3306;Database=iotcenter;Uid=root;Pwd=aA123456!;", "mysql": "Server=localhost;Port=3306;Database=iotcenter;Uid=root;Pwd=aA123456!;",
"job.mysql": "Server=localhost;Port=3306;Database=jobserver;Uid=root;Pwd=aA123456!;Allow User Variables=True;", "job.mysql": "Server=localhost;Port=3306;Database=jobserver;Uid=root;Pwd=aA123456!;Allow User Variables=True;",
"job.sqlite": "Data Source=job.db",
"redis": "localhost:6379,password=aA123456!,allowAdmin=true", "redis": "localhost:6379,password=aA123456!,allowAdmin=true",
"srs": "http://localhost:1985" "srs": "http://localhost:1985"
}, },

Loading…
Cancel
Save