Former-commit-id: e69f98468002153548426f427c3325638f20b539
Former-commit-id: 4fa2dcbef15dbd6e01e3e22cdd191da347539620
TangShanKaiPing
wanggang 5 years ago
parent b44db23b09
commit 8168e857ab

@ -46,13 +46,19 @@
list['wind'] = form.find("[name = 'wind']:checked").val(); list['wind'] = form.find("[name = 'wind']:checked").val();
list['temperature'] = form.find("[name = 'temperature']").val(); list['temperature'] = form.find("[name = 'temperature']").val();
list[event.target.name] = event.target.value; list[event.target.name] = event.target.value;
code = 0; var code = 0;
for (var name in list) { if (list['power'] === "1") {
code += parseInt(list[name]); code = 1;
} }
else {
for (var name in list) {
code += parseInt(list[name]);
}
}
$('#ircodeid').val(code); $('#ircodeid').val(code);
} }
function CodeChange(e) { function CodeChange(e) {
var form = $('#ircodediv'); var form = $('#ircodediv');
var list = {}; var list = {};
list['power'] = form.find("[name = 'power']:checked").val(); list['power'] = form.find("[name = 'power']:checked").val();

@ -1,4 +1,4 @@
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.604")] [assembly: AssemblyInformationalVersion("1.0.0.609")]

@ -1,80 +1,78 @@
#user nobody; #user nobody;
worker_processes 1; worker_processes 1;
#error_log logs/error.log; #error_log logs/error.log;
#error_log logs/error.log notice; #error_log logs/error.log notice;
#error_log logs/error.log info; #error_log logs/error.log info;
#pid logs/nginx.pid; #pid logs/nginx.pid;
events { events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
sendfile on; sendfile on;
keepalive_timeout 65; keepalive_timeout 65;
server { server {
listen 0.0.0.0:80; listen 0.0.0.0:80;
server_name localhost; server_name localhost;
location / { location / {
#proxy_set_header Host $host:$server_port; #proxy_set_header Host $host:$server_port;
if ($http_user_agent ~* "(mobile|android|ipad|iphone|ipod|tablet)") { if ($http_user_agent ~* "(mobile|android|ipad|iphone|ipod|tablet)") {
proxy_pass http://localhost:5002; proxy_pass http://localhost:5002;
break; break;
} }
proxy_pass http://localhost:5001/; proxy_pass http://localhost:5001/;
} }
location ^~ /dfs/ { location ^~ /dfs/ {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:9000/; proxy_pass http://localhost:9000/;
} }
location ^~ /live/ { location ^~ /live/ {
proxy_pass http://localhost:8080/live/; proxy_pass http://localhost:8080/live/;
} }
location ^~ /video/ { location ^~ /video/ {
proxy_pass http://localhost:8080/video/; proxy_pass http://localhost:8080/video/;
} }
location ^~ /influxdb/ { location ^~ /influxdb/ {
proxy_pass http://localhost:8086/; proxy_pass http://localhost:8086/;
} }
location ^~ /UserCenter/ { location ^~ /UserCenter/ {
proxy_pass http://localhost:8010/UserCenter/; proxy_pass http://localhost:8010/UserCenter/;
} }
location ^~ /IoTCenter/ { location ^~ /IoTCenter/ {
proxy_pass http://localhost:8011/IoTCenter/; proxy_pass http://localhost:8011/IoTCenter/;
} }
location ^~ /IoTCenter/hub { location ^~ /IoTCenter/hub {
proxy_pass http://localhost:8011/IoTCenter/hub; proxy_pass http://localhost:8011/IoTCenter/hub;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
location ^~ /JobServer/ { location ^~ /JobServer/ {
proxy_pass http://localhost:8013/JobServer/; proxy_pass http://localhost:8013/JobServer/;
} }
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location = /50x.html { location = /50x.html {
root html; root html;
} }
} }
} }

@ -43,7 +43,7 @@ http {
proxy_pass http://172.172.0.60:8080/video/; proxy_pass http://172.172.0.60:8080/video/;
} }
location ^~ /influxdb/ { location ^~ /influxdb/ {
proxy_pass http://172.172.0.50:8086/; proxy_pass http://172.172.0.50:8086/;
} }

@ -43,7 +43,7 @@ http {
proxy_pass http://host.docker.internal:8080/video/; proxy_pass http://host.docker.internal:8080/video/;
} }
location ^~ /influxdb/ { location ^~ /influxdb/ {
proxy_pass http://host.docker.internal:8086/; proxy_pass http://host.docker.internal:8086/;
} }

Loading…
Cancel
Save