You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/docker/conf/gateway/nginx.development.conf

94 lines
2.4 KiB

#user nobody;
worker_processes 4;
#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 ^~ /portainer/ {
proxy_pass http://host.docker.internal:9002/;
}
location ^~ /minio/ {
proxy_pass http://host.docker.internal:9000/minio/;
}
location ^~ /mysqlui/ {
proxy_pass http://host.docker.internal:9003/;
}
location ^~ /influxui/ {
proxy_pass http://host.docker.internal:8083/;
}
location ^~ /phpredisadmin/ {
proxy_pass http://host.docker.internal:9004/;
}
location ^~ /srs/ {
proxy_pass http://host.docker.internal:8080/;
}
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;
}
}
}