From b44db23b09ceeed91fd10a0fd0d9c21dd9d55f30 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 9 Jun 2020 08:13:55 +0800 Subject: [PATCH] update Former-commit-id: ab35c9ccafea6970ec3e7c8781fa3b37c249e7c6 Former-commit-id: 7d87adf33f0a3ff9ce9b67eac6e9ecc2c7ae5c1b --- projects/IoTCenter/ViewModels/QueryRequest.cs | 7 +++++++ publish/src/linux-x64/publish/conf/nginx.conf | 4 ++++ publish/src/linux-x64/publish/docker/conf/nginx/nginx.conf | 4 ++++ .../publish/docker/conf/nginx/nginx.development.conf | 4 ++++ 4 files changed, 19 insertions(+) create mode 100644 projects/IoTCenter/ViewModels/QueryRequest.cs diff --git a/projects/IoTCenter/ViewModels/QueryRequest.cs b/projects/IoTCenter/ViewModels/QueryRequest.cs new file mode 100644 index 00000000..1807f082 --- /dev/null +++ b/projects/IoTCenter/ViewModels/QueryRequest.cs @@ -0,0 +1,7 @@ +namespace IoTCenter.ViewModels +{ + public class QueryRequest + { + public string Query { get; set; } + } +} diff --git a/publish/src/linux-x64/publish/conf/nginx.conf b/publish/src/linux-x64/publish/conf/nginx.conf index 37b11893..c92ba38f 100644 --- a/publish/src/linux-x64/publish/conf/nginx.conf +++ b/publish/src/linux-x64/publish/conf/nginx.conf @@ -49,6 +49,10 @@ http { proxy_pass http://localhost:8080/video/; } + location ^~ /influxdb/ { + proxy_pass http://localhost:8086/; + } + location ^~ /UserCenter/ { proxy_pass http://localhost:8010/UserCenter/; } diff --git a/publish/src/linux-x64/publish/docker/conf/nginx/nginx.conf b/publish/src/linux-x64/publish/docker/conf/nginx/nginx.conf index adb2b84d..6059de2d 100644 --- a/publish/src/linux-x64/publish/docker/conf/nginx/nginx.conf +++ b/publish/src/linux-x64/publish/docker/conf/nginx/nginx.conf @@ -43,6 +43,10 @@ http { proxy_pass http://172.172.0.60:8080/video/; } + location ^~ /influxdb/ { + proxy_pass http://172.172.0.50:8086/; + } + location ^~ /UserCenter/ { proxy_pass http://172.172.0.70/UserCenter/; } diff --git a/publish/src/linux-x64/publish/docker/conf/nginx/nginx.development.conf b/publish/src/linux-x64/publish/docker/conf/nginx/nginx.development.conf index 8015a5e4..786466bb 100644 --- a/publish/src/linux-x64/publish/docker/conf/nginx/nginx.development.conf +++ b/publish/src/linux-x64/publish/docker/conf/nginx/nginx.development.conf @@ -43,6 +43,10 @@ http { proxy_pass http://host.docker.internal:8080/video/; } + location ^~ /influxdb/ { + proxy_pass http://host.docker.internal:8086/; + } + location ^~ /UserCenter/ { proxy_pass http://host.docker.internal:8010/UserCenter/; }