配置文件调整
This commit is contained in:
parent
9af5f78dd3
commit
7403647da2
@ -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)
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
@ -6,14 +6,12 @@
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
|
||||
"urls": "http://0.0.0.0:8888", //(app会默认去读)项目启动url,如果改动端口前端对应devServer也需要进行修改
|
||||
"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 = 3,PgSql = 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是服务于哪个群体的(群体范围)
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user