Created
June 28, 2020 09:03
-
-
Save mattexdee/5ca96b8df28f7788aae11a861b7a8f5c to your computer and use it in GitHub Desktop.
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
Copy #1 | |
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y | |
Copy #2 | |
nano /etc/nginx/sites-available/ | |
Copy #3 | |
add_header 'Access-Control-Allow-Origin' '*'; | |
Copy #4 | |
add_header 'Access-Control-Allow-Credentials' 'true'; | |
Copy #5 | |
add_header 'Access-Control-Allow-Methods' 'GET,HEAD,OPTIONS,POST,PUT'; | |
Copy #6 | |
add_header 'Access-Control-Allow-Headers' 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers'; | |
Copy #7 | |
curl https://gist.githubusercontent.com/noandrea/5ff6b212273af95103996c0e71f0cdf2/raw/22965f246c59bc149245554b6079db97794425bd/apeunit.test-config.js -s | \ | |
sed "s/apeunit.test/$JITSI_DOMAIN/g" \ | |
> /etc/jitsi/meet/$JITSI_DOMAIN-config.js | |
Copy #8 | |
curl https://gist.githubusercontent.com/noandrea/5ff6b212273af95103996c0e71f0cdf2/raw/bb3e8a65582882dd3aeb4624d2522b244b949855/apeunit.test.cfg.lua -s | \ | |
sed "s/apeunit.test/$JITSI_DOMAIN/g" | \ | |
sed "s/JICOFO_SECRET/$(grep -e '^JICOFO_SECRET=.*' /etc/jitsi/jicofo/config | cut -d '=' -f2)/g" | \ | |
sed "s/TURN_SECRET/$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-8})/g" \ | |
> /etc/prosody/conf.avail/$JITSI_DOMAIN.cfg.lua | |
Copy #9 | |
echo "org.jitsi.jicofo.auth.URL=XMPP:$JITSI_DOMAIN" \ | |
>> /etc/jitsi/jicofo/sip-communicator.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment