Former-commit-id: 9f5df6de653abd67521b279809fc01f6c1d24619 Former-commit-id: c8262111dd4101ddc2f919562dcd2a75f7fb794bTSXN
parent
a1365e5c5d
commit
71660b12ab
@ -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://host.docker.internal:9000/;
|
||||
}
|
||||
|
||||
location ^~ /live/ {
|
||||
proxy_pass http://host.docker.internal:8080/live/;
|
||||
}
|
||||
|
||||
location ^~ /video/ {
|
||||
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/;
|
||||
}
|
||||
|
||||
location ^~ /IoTCenter/ {
|
||||
proxy_pass http://host.docker.internal:8011/IoTCenter/;
|
||||
}
|
||||
|
||||
location ^~ /IoTCenter/hub {
|
||||
proxy_pass http://host.docker.internal:8011/IoTCenter/hub;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location ^~ /JobServer/ {
|
||||
proxy_pass http://host.docker.internal:8013/JobServer/;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue