Former-commit-id: 14d3d72582a810f4ad572d0e860f32af75a59339 Former-commit-id: e42436b103971fc0a73d469be4f61f141ec46688TSXN
parent
71660b12ab
commit
73f974ba5e
@ -0,0 +1,71 @@
|
|||||||
|
#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