default.conf 1.77 KB
server {
    listen       80;
    listen  [::]:80;
    server_name  192.168.1.48;
    #charset koi8-r;
    #access_log  /var/log/nginx/host.access.log  main;
   
	root    /usr/share/nginx/html; 
	index  index.html index.htm;
	try_files $uri $uri/ /index.html;
    

	
	location /api/ {
		proxy_pass http://192.168.1.48:8080;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "Upgrade";
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
	
	location /yt/ {
		proxy_pass http://192.168.1.48:8080;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "Upgrade";
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
	
	location /upload/ {
		proxy_pass http://192.168.1.48:8080;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "Upgrade";
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}

   location /thingskit-scada {
		proxy_pass http://192.168.1.48:8083/;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "Upgrade";
		proxy_set_header Host $host:8083;
    proxy_set_header X-Forwarded-Port 8083;
		proxy_cache_bypass $http_upgrade;
   }

   location /large-designer {
		proxy_pass http://192.168.1.48:8084/;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "Upgrade";
		proxy_set_header Host $host:8084;
    proxy_set_header X-Forwarded-Port 8084;
		proxy_cache_bypass $http_upgrade;
   }
	
	#error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}