Last active
June 2, 2020 11:40
-
-
Save shivasiddharth/0baa395ff6390f8893dfe231b395c612 to your computer and use it in GitHub Desktop.
Nginx installer script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo apt-get install libnginx-mod-rtmp | |
cat << EOF >> /etc/nginx/nginx.conf | |
rtmp { | |
server { | |
listen 1935; | |
chunk_size 4096; | |
application live { | |
live on; | |
record off; | |
} | |
} | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment