Skip to content

Instantly share code, notes, and snippets.

@v1nc
Created October 6, 2020 12:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v1nc/ce229504a6a78c3b65eacb6f301ffaca to your computer and use it in GitHub Desktop.
Save v1nc/ce229504a6a78c3b65eacb6f301ffaca to your computer and use it in GitHub Desktop.
proxy rtsp stream on raspberry with nginx
#install deps
sudo apt install software-properties-common dpkg-dev
sudo add-apt-repository -y ppa:nginx/stable
sudo apt-get update && upgrade -y
#download source
mkdir nginx && cd nginx
sudo apt-get source nginx
sudo apt-get build-dep nginx
#prepare build:
nano nginx-x.x.x/debian/rules
#add --with-stream at the end of 'full_configure_flags :='
#build
sudo dpkg-buildpackage -b
#install
sudo dpkg --install nginx-full_xxx.deb
#use it: https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment