aboutsummaryrefslogtreecommitdiffstats
path: root/demo/nginx_proxy/demo-2/proxy_nginx.conf
blob: 925e1a90b18692b16bf5237da1ca591585174a2a (plain)
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
31
32
33
user  root;
worker_processes  1;
daemon off;
#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;
}

stream {
    upstream stream_tcp {
        server 172.167.50.30:80;
    }
    upstream stream_udp {
       server 182.167.50.30:53;
    }
    server {
        listen       192.168.50.20:80;
        proxy_bind 172.167.50.20:2020;
        proxy_pass stream_tcp;
    }
    server {
        listen    192.168.50.20:53 udp;
        proxy_bind 182.167.50.20:53;
        proxy_pass stream_udp;
    }
}