1.增加mysql连接,用于在线体验及cidi;2.docker使用容器镜像服务

This commit is contained in:
dd 2021-12-16 13:43:53 +08:00
parent 7369e8da24
commit eed7fbf6f3
2 changed files with 119 additions and 2 deletions

View File

@ -29,8 +29,9 @@
4. 解压release包运行IoTGateway.exe 4. 解压release包运行IoTGateway.exe
5. 访问[iotgateway](http://localhost:518/)后台http://localhost:518 5. 访问[iotgateway](http://localhost:518/)后台http://localhost:518
## linux docker运行 ## linux docker运行
1. docker pull 15261671110/iotgateway 1. docker pull registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway
2. docker run -d -p 518:518 --name iotgateway --restart always 15261671110/iotgateway 2. docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway 15261671110/iotgateway
3. docker run -d -p 518:518 --name iotgateway --restart always 15261671110/iotgateway
## 登入系统 ## 登入系统
1. 用户名 admin,密码 000000 1. 用户名 admin,密码 000000
2. 打开发布文件路径下的ReadMe文件夹中的手摸手按照顺序添加设备进行采集 2. 打开发布文件路径下的ReadMe文件夹中的手摸手按照顺序添加设备进行采集

116
appsettings.json Normal file
View File

@ -0,0 +1,116 @@
{
"Logging": {
"Console": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Error"
}
},
"Debug": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Error"
}
},
"WTM": {
"LogLevel": {
"Default": "Error"
}
}
},
"Connections": [
{
"Key": "default",
"Value": "server=172.17.0.1;database=iotgateway;user=root;CharSet=utf8mb4;password=agv123456;port=3366;Allow User Variables=True;",
"DbContext": "DataContext",
"DBType": "mysql" //DataBase, you can choose mysql,sqlserver,pgsql,sqlite,oracle
}
],
"CookiePre": "IoTGateway", //cookie prefix
"IsQuickDebug": false, //is debug mode
"CorsOptions": {
"EnableAll": true,
"Policy": [
{
"Name": "Default",
"Domain": "http://localhost,https://localhost"
}
]
},
"ErrorHandler": "/_Framework/Error",
"Languages": "zh,en",
"BlazorMode": "server", // server or wasm
"UIOptions": {
"DataTable": {
"RPP": 100, //default records per page for all datagrid
"ShowPrint": true,
"ShowFilter": true
},
"ComboBox": {
"DefaultEnableSearch": true
},
"DateTime": {
"DefaultReadonly": true
},
"SearchPanel": {
"DefaultExpand": false
}
},
"PageMode": "Tab", //display modeSingle or Tab
"TabMode": "Simple", //Tab modeDefault or Simple
"IsFilePublic": false, //Can download or view attachment file without login
"FileUploadOptions": {
"UploadLimit": 2097152000,
"SaveFileMode": "local", //Database,local,oss
"Settings": {
"local": [
{
"GroupName": "driver",
"GroupLocation": ""
}
],
"oss": [
{
"GroupName": "default",
"GroupLocation": "wtmimg",
"ServerUrl": "",
"Key": "",
"Secret": ""
}
]
}
},
"JwtOptions": {
"Issuer": "http://localhost",
"Audience": "http://localhost",
"Expires": 3600,
"SecurityKey": "superSecretKey@345",
"RefreshTokenExpires": 86400,
"LoginPath": "/_Framework/Redirect401"
},
"CookieOptions": {
"Issuer": "http://localhost",
"Audience": "http://localhost",
"Domain": "",
"Expires": 3600,
"SlidingExpiration": true,
"SecurityKey": "superSecretKey@345",
"RefreshTokenExpires": 86400,
"LoginPath": "/Login/Login"
},
"Domains": {
"server": { //Blazor Server
"Address": "http://localhost:6652"
},
"serverpub": { //Blazor Serverapi
"Address": "http://localhost:6652"
},
"github": {
"Address": "https://api.github.com"
}
},
"AppSettings": {
"key1": "value1",
"key2": "value2"
}
}