Former-commit-id: 98ae25e0839011cdff145be81cd496f8f098f808 Former-commit-id: 8f69c20b0ac5b2a678debb5716f08889ac11a3bfTSXN
parent
0388dd453a
commit
a1365e5c5d
@ -1,12 +1,10 @@
|
||||
#docker-compose up -d
|
||||
version: "3.8"
|
||||
services:
|
||||
desktop:
|
||||
website:
|
||||
volumes:
|
||||
- ../../../../projects/WebMVC/wwwroot:/usr/share/nginx/html
|
||||
mobile:
|
||||
volumes:
|
||||
- ../../../../projects/WebSPA/wwwroot:/usr/share/nginx/html
|
||||
- ../../../../projects/WebMVC/wwwroot:/usr/share/nginx/html/desktop
|
||||
- ../../../../projects/WebSPA/wwwroot:/usr/share/nginx/html/mobile
|
||||
gateway:
|
||||
volumes:
|
||||
- ./docker/conf/gateway/nginx.development.conf:/etc/nginx/nginx.conf
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue