From 5f7e5c4b85df538e0e73950714a41444f1852034 Mon Sep 17 00:00:00 2001 From: Jacobtread Date: Thu, 12 Sep 2024 21:26:51 +1200 Subject: [PATCH] feat: add stream config to default nginx example --- examples/nginx/config.json | 6 +++++- examples/nginx/nginx.conf | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/nginx/config.json b/examples/nginx/config.json index d6112d35..a5579dae 100644 --- a/examples/nginx/config.json +++ b/examples/nginx/config.json @@ -1,4 +1,8 @@ { "port": 80, - "reverse_proxy": true + "reverse_proxy": true, + "udp_tunnel": { + "port": 9032, + "external_port": 8081 + } } \ No newline at end of file diff --git a/examples/nginx/nginx.conf b/examples/nginx/nginx.conf index 871e14a9..c9db9c9e 100644 --- a/examples/nginx/nginx.conf +++ b/examples/nginx/nginx.conf @@ -22,3 +22,12 @@ http { } } } + + +stream { + # Proxy traffic to the tunnel V2 which is a faster UDP tunnel + server { + listen 8081 udp; + proxy_pass server:9032; + } +} \ No newline at end of file