From aab7291fa5079317dd0cf9d8ae0ad5b87a116b0b Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 24 Sep 2019 16:42:32 +0800 Subject: [PATCH] rc.6 Former-commit-id: 3818f34c62697a23a56f9c58014f955e1b62232d --- projects/IoT/IoTNode/appsettings.json | 2 +- projects/IoTCenter/Controllers/HomeController.cs | 1 + projects/IoTCenter/appsettings.json | 2 +- projects/UserCenter/appsettings.json | 2 +- publish/build.cmd | 4 ++-- tools/nginx-1.16.0/conf/nginx.conf | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/projects/IoT/IoTNode/appsettings.json b/projects/IoT/IoTNode/appsettings.json index ff03d904..538df969 100644 --- a/projects/IoT/IoTNode/appsettings.json +++ b/projects/IoT/IoTNode/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "Logging": { "LogLevel": { "Default": "Warning", diff --git a/projects/IoTCenter/Controllers/HomeController.cs b/projects/IoTCenter/Controllers/HomeController.cs index d6c3da52..eed2d478 100644 --- a/projects/IoTCenter/Controllers/HomeController.cs +++ b/projects/IoTCenter/Controllers/HomeController.cs @@ -123,6 +123,7 @@ namespace IoTCenter.Controllers return Json(model, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }); } + [Authorize] [Route("/Node")] public IActionResult Node(string number) { diff --git a/projects/IoTCenter/appsettings.json b/projects/IoTCenter/appsettings.json index b35d6d77..c1847ef6 100644 --- a/projects/IoTCenter/appsettings.json +++ b/projects/IoTCenter/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "Logging": { "LogLevel": { "Default": "Warning", diff --git a/projects/UserCenter/appsettings.json b/projects/UserCenter/appsettings.json index 0ab96143..8571fbbd 100644 --- a/projects/UserCenter/appsettings.json +++ b/projects/UserCenter/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "Logging": { "LogLevel": { "Default": "Warning" diff --git a/publish/build.cmd b/publish/build.cmd index f606e69f..0bc129a9 100644 --- a/publish/build.cmd +++ b/publish/build.cmd @@ -5,8 +5,8 @@ rd /q/s "./dist/" echo d|xcopy "./src" "./dist/" /s /e /y /f -dotnet publish ../projects/UserCenter/UserCenter.csproj -c Release -r linux-x64 -o ../../publish/dist/linux-x64/publish/apps/UserCenter -dotnet publish ../projects/IoTCenter/IoTCenter.csproj -c Release -r linux-x64 -o ../../publish/dist/linux-x64/publish/apps/IoTCenter +dotnet publish ../projects/UserCenter/UserCenter.csproj -c Release -r linux-x64 -o ../publish/dist/linux-x64/publish/apps/UserCenter +dotnet publish ../projects/IoTCenter/IoTCenter.csproj -c Release -r linux-x64 -o ../publish/dist/linux-x64/publish/apps/IoTCenter dotnet publish ../projects/IoT/IoTNode/IoTNode.csproj -c Release -r linux-arm64 -o ../publish/dist/linux-arm64/publish/apps/IoTNode dotnet publish ../projects/IoT/IoTNode/IoTNode.csproj -c Release -r linux-arm -o ../publish/dist/linux-arm/publish/apps/IoTNode diff --git a/tools/nginx-1.16.0/conf/nginx.conf b/tools/nginx-1.16.0/conf/nginx.conf index cce8e731..51627eeb 100644 --- a/tools/nginx-1.16.0/conf/nginx.conf +++ b/tools/nginx-1.16.0/conf/nginx.conf @@ -23,7 +23,7 @@ http { keepalive_timeout 65; server { - listen 127.0.0.1:80; + listen 0.0.0.0:80; server_name localhost; location ^~ /live/ {