Skip to content

Commit

Permalink
feat: add stream config to default nginx example
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtread committed Sep 12, 2024
1 parent 67963b7 commit 5f7e5c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/nginx/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"port": 80,
"reverse_proxy": true
"reverse_proxy": true,
"udp_tunnel": {
"port": 9032,
"external_port": 8081
}
}
9 changes: 9 additions & 0 deletions examples/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 5f7e5c4

Please sign in to comment.