42 lines
		
	
	
	
		
			792 B
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			792 B
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
daemon            off;
 | 
						|
error_log /dev/stdout info;
 | 
						|
 | 
						|
events {
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
http {
 | 
						|
    include       mime.types;
 | 
						|
    charset       utf-8;
 | 
						|
#    access_log /dev/stdout;
 | 
						|
 | 
						|
    map $http_upgrade $connection_upgrade {
 | 
						|
        default upgrade;
 | 
						|
        '' close;
 | 
						|
    }
 | 
						|
 | 
						|
    server {
 | 
						|
        server_name   localhost;
 | 
						|
        listen 8099;
 | 
						|
        allow  172.30.32.2;
 | 
						|
        deny   all;
 | 
						|
 | 
						|
        location      / {
 | 
						|
            root      /public;
 | 
						|
        }
 | 
						|
 | 
						|
        location /input_img {
 | 
						|
            proxy_pass http://localhost:8080/;
 | 
						|
        }
 | 
						|
 | 
						|
        location /ws {
 | 
						|
            proxy_pass http://localhost:8000;
 | 
						|
            proxy_http_version 1.1;
 | 
						|
            proxy_set_header Upgrade $http_upgrade;
 | 
						|
            proxy_set_header Connection "Upgrade";
 | 
						|
            proxy_set_header Host $host;
 | 
						|
        }
 | 
						|
 | 
						|
    }
 | 
						|
 | 
						|
}
 |