Skip to content

Instantly share code, notes, and snippets.

@strayge
Created August 3, 2019 00:11
Show Gist options
  • Save strayge/ecbd2b9152ad2503b892fb471fd4d7ba to your computer and use it in GitHub Desktop.
Save strayge/ecbd2b9152ad2503b892fb471fd4d7ba to your computer and use it in GitHub Desktop.
simple udp proxy via nginx

simple udp proxy via nginx + docker-compose

version: '2'
services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 9999:9999/udp
user root;
worker_processes 2;
events {
worker_connections 1024;
}
stream {
server {
listen 9999 udp;
proxy_pass something.remote.com:9999;
#proxy_responses 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment