提交 964efd55 编写于 作者: 麦壳饼's avatar 麦壳饼

调整证书

上级 22ffd64f
......@@ -70,7 +70,15 @@ namespace IoTSharp.Controllers
private InstanceDto GetInstanceDto()
{
return new InstanceDto() { Installed = _context.Relationship.Any(), Domain =_setting.MqttBroker.DomainName?? this.Request.Host.ToString(), Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(), CACertificate= _setting.MqttBroker.CACertificate != null , CAThumbprint = _setting.MqttBroker.CACertificate?.Thumbprint, BrokerThumbprint = _setting.MqttBroker.BrokerCertificate.Thumbprint};
return new InstanceDto()
{
Installed = _context.Relationship.Any(),
Domain = _setting.MqttBroker.DomainName ?? this.Request.Host.ToString(),
Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(),
CACertificate = _setting.MqttBroker.CACertificate != null,
CAThumbprint = _setting.MqttBroker.CACertificate?.Thumbprint,
BrokerThumbprint = _setting.MqttBroker.BrokerCertificate?.Thumbprint
};
}
/// <summary>
......
......@@ -8,8 +8,8 @@
},
"DataBase": "PostgreSql",
"ConnectionStrings": {
"IoTSharp": "Server=localhost;Database=IoTSharp20221;Username=postgres;Password=future;",
"TelemetryStorage": "Server=localhost;Database=IoTSharp20221;Username=postgres;Password=future;"
"IoTSharp": "Server=localhost;Database=IoTSharp20222;Username=postgres;Password=future;",
"TelemetryStorage": "Server=localhost;Database=IoTSharp20222;Username=postgres;Password=future;"
},
"JwtKey": "iotsharpiotsharpiotsharpiotsharpiotsharp",
"JwtExpireHours": 3,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册