配置文件调整

This commit is contained in:
赵正易 2025-12-29 18:12:58 +08:00
parent 9af5f78dd3
commit 7403647da2
2 changed files with 36 additions and 37 deletions

View File

@ -1,15 +1,20 @@
{
//ZRtech123
"NacosConfig": {
"Listeners": [
//DOANtech123
"MqttConfig": {
"ClientId": "shgg-mes-server",
"Server": "192.168.60.251",
"Port": 1883,
"Username": "admin",
"Password": "123456",
"Topics": [
{
"Optional": false,
"DataId": "MesServerConfig",
"Group": "DEFAULT_GROUP"
"Topic": "shgx_tz/device/#",
"QualityOfServiceLevel": "AtLeastOnce"
},
{
"Topic": "shgx_tz/alert/#",
"QualityOfServiceLevel": "AtLeastOnce"
}
],
//
"ServerAddresses": [ "http://127.0.0.1:8848" ], // Nacos
"Namespace": "" // public
]
}
}

View File

@ -1,4 +1,4 @@
{
{
"Logging": {
"LogLevel": {
"Default": "Information",
@ -6,14 +6,12 @@
"Microsoft.Hosting.Lifetime": "Information"
}
},
"urls": "http://0.0.0.0:8888", //appurldevServer
"dbConfigs": [
{
//"Conn": "Data Source=147.116.122.230;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
//"Conn": "Data Source=47.116.122.230;Port=3307;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
//"Conn": "Data Source=192.168.60.251;Port=3306;User ID=root;Password=123456;Initial Catalog=ZrAdmin;",
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ZrAdmin;Port=3308",
"Conn": "Data Source=192.168.60.251;Port=3306;User ID=root;Password=123456;Initial Catalog=ZrAdmin;AllowLoadLocalInfile=true",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //
"IsAutoCloseConnection": true
@ -23,13 +21,13 @@
//
"CodeGenDbConfig": {
//{dbName}
"Conn": "Data Source=139.224.232.211;User ID=root;Password=123456;Initial Catalog={dbName};",
"Conn": "Data Source=192.168.60.251;User ID=root;Password=123456;Initial Catalog={dbName};",
"DbType": 0,
"IsAutoCloseConnection": true,
"DbName": "ZrAdmin" //
},
"corsUrls": [ "http://localhost:8887", "http://localhost:8888", "http://192.168.60.251:8877" ], //","
"corsUrls": [ "http://localhost:8887", "http://localhost:8886", "http://192.168.60.251:8877" ], //","
"JwtSettings": {
"Issuer": "ZRAdmin.NET", //token
"Audience": "ZRAdmin.NET", //token
@ -37,15 +35,15 @@
"Expire": 10080 //jwt7
},
"InjectClass": [ "ZR.Repository", "ZR.Service", "ZR.Tasks" ], //
"ShowDbLog": false, //db
"ShowDbLog": false,//db
"InitDb": false, //db
"DemoMode": false, //
"Upload": {
"uploadUrl": "http://localhost:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ]
},
"Upload": {
"uploadUrl": "http://localhost:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ]
},
//
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
@ -144,21 +142,17 @@
"CaptchaOptions": {
"IgnoreCase": true //
},
"MqttConfig": {
"ClientId": "shgg-mes-server",
"Server": "192.168.23.165",
"Port": 1883,
"Username": "admin",
"Password": "123456",
"Topics": [
//DOANtech123
"NacosConfig": {
"Listeners": [
{
"Topic": "devices/#",
"QualityOfServiceLevel": "AtLeastOnce"
},
{
"Topic": "system/alert",
"QualityOfServiceLevel": "AtLeastOnce"
"Optional": false,
"DataId": "MesServerConfig",
"Group": "DEFAULT_GROUP"
}
]
],
//
"ServerAddresses": [ "http://127.0.0.1:8848" ], // Nacos
"Namespace": "" // public
}
}