1.0.0.0810d1

Former-commit-id: 98ae25e0839011cdff145be81cd496f8f098f808
Former-commit-id: 8f69c20b0ac5b2a678debb5716f08889ac11a3bf
TSXN
wanggang 5 years ago
parent 0388dd453a
commit a1365e5c5d

@ -15,7 +15,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Jint" Version="2.11.58" /> <PackageReference Include="Jint" Version="2.11.58" />
<PackageReference Include="CS-Script.Core" Version="1.3.2" /> <PackageReference Include="CS-Script.Core" Version="1.4.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.6" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.1.6" /> <PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.1.6" />

@ -18,7 +18,7 @@
<PackageReference Include="SSH.NET" Version="2016.1.0" /> <PackageReference Include="SSH.NET" Version="2016.1.0" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.2.2" /> <PackageReference Include="Microsoft.OpenApi.Readers" Version="1.2.2" />
<PackageReference Include="System.IO.Ports" Version="4.7.0" /> <PackageReference Include="System.IO.Ports" Version="4.7.0" />
<PackageReference Include="Vibrant.InfluxDB.Client" Version="4.0.3" /> <PackageReference Include="Vibrant.InfluxDB.Client" Version="4.0.4" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="wwwroot\**\*" /> <EmbeddedResource Include="wwwroot\**\*" />

@ -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.0807d2")] [assembly: AssemblyInformationalVersion("1.0.0.0810d1")]

@ -1,12 +1,10 @@
#docker-compose up -d #docker-compose up -d
version: "3.8" version: "3.8"
services: services:
desktop: website:
volumes: volumes:
- ../../../../projects/WebMVC/wwwroot:/usr/share/nginx/html - ../../../../projects/WebMVC/wwwroot:/usr/share/nginx/html/desktop
mobile: - ../../../../projects/WebSPA/wwwroot:/usr/share/nginx/html/mobile
volumes:
- ../../../../projects/WebSPA/wwwroot:/usr/share/nginx/html
gateway: gateway:
volumes: volumes:
- ./docker/conf/gateway/nginx.development.conf:/etc/nginx/nginx.conf - ./docker/conf/gateway/nginx.development.conf:/etc/nginx/nginx.conf

@ -54,36 +54,3 @@ services:
networks: networks:
default: default:
ipv4_address: 172.172.0.90 ipv4_address: 172.172.0.90
webmvc:
image: nginx:1.18
restart: always
environment:
TZ: "Asia/Shanghai"
ports:
- 5001:80
volumes:
- ./apps/WebMVC/wwwroot:/usr/share/nginx/html
- ./docker/log/webmvc:/var/log/nginx
networks:
default:
ipv4_address: 172.172.0.110
webspa:
image: nginx:1.18
restart: always
environment:
TZ: "Asia/Shanghai"
ports:
- 5002:80
volumes:
- ./apps/WebSPA/wwwroot:/usr/share/nginx/html
- ./docker/log/webspa:/var/log/nginx
networks:
default:
ipv4_address: 172.172.0.120
nginx:
depends_on:
- usercenter
- iotcenter
- jobserver
- webmvc
- webspa

@ -18,8 +18,8 @@ services:
networks: networks:
default: default:
ipv4_address: 172.172.0.101 ipv4_address: 172.172.0.101
#web sites #web site
desktop: website:
image: nginx:1.18 image: nginx:1.18
restart: always restart: always
environment: environment:
@ -28,33 +28,16 @@ services:
- 80:80 - 80:80
- 443:443 - 443:443
volumes: volumes:
- ./docker/conf/desktop/nginx.conf:/etc/nginx/nginx.conf - ./docker/conf/website/nginx.conf:/etc/nginx/nginx.conf
- ./docker/log/desktop:/var/log/nginx - ./docker/log/website:/var/log/nginx
- ./apps/WebMVC/wwwroot:/usr/share/nginx/html - ./apps/WebMVC/wwwroot:/usr/share/nginx/html/desktop
- ./apps/WebSPA/wwwroot:/usr/share/nginx/html/mobile
depends_on: depends_on:
- minio - minio
- mysql - mysql
networks: networks:
default: default:
ipv4_address: 172.172.0.10 ipv4_address: 172.172.0.10
mobile:
image: nginx:1.18
restart: always
environment:
TZ: "Asia/Shanghai"
ports:
- 81:80
- 4430:443
volumes:
- ./docker/conf/mobile/nginx.conf:/etc/nginx/nginx.conf
- ./docker/log/mobile:/var/log/nginx
- ./apps/WebSPA/wwwroot:/usr/share/nginx/html
depends_on:
- minio
- mysql
networks:
default:
ipv4_address: 172.172.0.11
#gateway #gateway
gateway: gateway:
image: nginx:1.18 image: nginx:1.18

@ -45,22 +45,22 @@ http {
} }
location ^~ /UserCenter/ { location ^~ /UserCenter/ {
proxy_pass http://172.172.0.70/UserCenter/; proxy_pass http://172.172.0.70:8010/UserCenter/;
} }
location ^~ /IoTCenter/ { location ^~ /IoTCenter/ {
proxy_pass http://172.172.0.80/IoTCenter/; proxy_pass http://172.172.0.80:8011/IoTCenter/;
} }
location ^~ /IoTCenter/hub { location ^~ /IoTCenter/hub {
proxy_pass http://172.172.0.80/IoTCenter/hub; proxy_pass http://172.172.0.80: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://172.172.0.90/JobServer/; proxy_pass http://172.172.0.90:8013/JobServer/;
} }
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;

@ -1,71 +0,0 @@
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 0.0.0.0:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
}
location ^~ /dfs/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://172.172.0.12;
}
location ^~ /live/ {
proxy_pass http://172.172.0.12;
}
location ^~ /video/ {
proxy_pass http://172.172.0.12;
}
location ^~ /influxdb/ {
proxy_pass http://172.172.0.12;
}
location ^~ /UserCenter/ {
proxy_pass http://172.172.0.12;
}
location ^~ /IoTCenter/ {
proxy_pass http://172.172.0.12;
}
location ^~ /IoTCenter/hub {
proxy_pass http://172.172.0.12;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ^~ /JobServer/ {
proxy_pass http://172.172.0.12;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}

@ -16,31 +16,35 @@ http {
sendfile on; sendfile on;
keepalive_timeout 65; keepalive_timeout 65;
upstream gateway {
server 172.172.0.12;
}
server { server {
listen 0.0.0.0:80; listen 0.0.0.0:80;
server_name localhost; server_name localhost;
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html/desktop;
index index.html;
if ($http_user_agent ~* "(mobile|android|ipad|iphone|ipod|tablet)") { if ($http_user_agent ~* "(mobile|android|ipad|iphone|ipod|tablet)") {
return 302 http://$host:81/; root /usr/share/nginx/html/mobile;
} }
index index.html;
} }
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://172.172.0.12; proxy_pass http://gateway;
} }
location ^~ /live/ { location ^~ /live/ {
proxy_pass http://172.172.0.12; proxy_pass http://gateway;
} }
location ^~ /video/ { location ^~ /video/ {
proxy_pass http://172.172.0.12; proxy_pass http://gateway;
} }
location ^~ /influxdb/ { location ^~ /influxdb/ {
@ -56,14 +60,14 @@ http {
} }
location ^~ /IoTCenter/hub { location ^~ /IoTCenter/hub {
proxy_pass http://172.172.0.12; proxy_pass http://gateway;
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://172.172.0.12; proxy_pass http://gateway;
} }
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
Loading…
Cancel
Save