File size: 632 Bytes
8d9ce81
ed8a313
1eafc05
8d9ce81
 
 
ed8a313
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
worker_processes auto;
error_log /dev/null crit;
pid /home/ubuntu/nginx.pid;
events {
    worker_connections 1024;
}

http {
    include /etc/nginx/mime.types;
    default_type text/html;
    access_log off;

    server {
        listen 7860;
        access_log off;

        location / {
            return 200 "Hello World";
        }

        location /control {
            proxy_redirect off;
	        proxy_pass http://127.0.0.1:17860;
	        proxy_http_version 1.1;
	        proxy_set_header Upgrade $http_upgrade;
	        proxy_set_header Connection "upgrade";
	        proxy_set_header Host $http_host;
        }
    }
}