Skip to content

Instantly share code, notes, and snippets.

@esonderegger
Created February 16, 2018 19:22
Show Gist options
  • Save esonderegger/51dccc517e437c96dd967f13a1aaf101 to your computer and use it in GitHub Desktop.
Save esonderegger/51dccc517e437c96dd967f13a1aaf101 to your computer and use it in GitHub Desktop.
Janus installation script
apt-get update
apt install -y nginx letsencrypt libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt libtool automake
wget https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz
tar xfv v2.1.0.tar.gz
cd libsrtp-2.1.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
cd ..
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/janus
make
make install
make configs
rm /etc/nginx/sites-enabled/default
cat >/etc/nginx/sites-enabled/default.conf <<EOL
server {
listen 80;
server_name default_server;
root /opt/janus/share/janus/demos;
}
EOL
nginx -t && sudo nginx -s reload
mkdir /var/log/janus
/opt/janus/bin/janus -b -L /var/log/janus/janus.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment