配置文件调整

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 //DOANtech123
"NacosConfig": { "MqttConfig": {
"Listeners": [ "ClientId": "shgg-mes-server",
"Server": "192.168.60.251",
"Port": 1883,
"Username": "admin",
"Password": "123456",
"Topics": [
{ {
"Optional": false, "Topic": "shgx_tz/device/#",
"DataId": "MesServerConfig", "QualityOfServiceLevel": "AtLeastOnce"
"Group": "DEFAULT_GROUP" },
{
"Topic": "shgx_tz/alert/#",
"QualityOfServiceLevel": "AtLeastOnce"
} }
], ]
//
"ServerAddresses": [ "http://127.0.0.1:8848" ], // Nacos
"Namespace": "" // public
} }
} }

View File

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