a lot of laptop changes

This commit is contained in:
Chris Cochrun 2021-12-06 06:05:41 -06:00
parent 8e179c3910
commit 9a725dcc03
35 changed files with 275 additions and 180 deletions

14
scripts/stream-setup.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# Let's setup the streaming service for LuctorCRC
peertubestreamkey=$(kdialog --password "What is the stream key for the website?")
facebookstreamkey=$(kdialog --password "What is the stream key for Facebook?")
echo $peertubestreamkey
echo $facebookstreamkey
ssh chris@40.122.147.124 sudo sed -i -e "s#luctorcrc.org.*#luctorcrc.org/live/$peertubestreamkey\;#" nginx-restream/data/nginx.conf
ssh chris@40.122.147.124 sudo sed -i -e "s#/rtmp/.*#/rtmp/$facebookstreamkey\;#" /etc/nginx/nginx.conf
# ssh chris@40.122.147.124 'sudo systemctl restart nginx'
ssh chris@40.122.147.124 sudo docker-compose down && sudo docker-compose up -d