This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
RUBY_V = File.open("./.ruby-version") { |f| f.read }.chomp | |
$apt_script = <<SCRIPT | |
sudo apt-get update | |
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev libmysqlclient-dev | |
SCRIPT |
diff --git a/lib/mkmf.rb b/lib/mkmf.rb | |
index 898e4a7..122cf19 100644 | |
--- a/lib/mkmf.rb | |
+++ b/lib/mkmf.rb | |
@@ -2206,7 +2206,7 @@ def init_mkmf(config = CONFIG, rbconfig = RbConfig::CONFIG) | |
$LOCAL_LIBS = "" | |
$cleanfiles = config_string('CLEANFILES') {|s| Shellwords.shellwords(s)} || [] | |
- $cleanfiles << "mkmf.log" | |
+ $cleanfiles << "mkmf.log .*.time" |
# Ubuntu 14.04 don't have nsenter - the straight forward way required me to install build tools and etc. | |
# I preferred to keep the system clean and install nsenter in a container and then copy the command to the host | |
# Note - its also possible to run nsenter from a container (didn't tried) https://github.com/jpetazzo/nsenter | |
# start a container | |
docker run --name nsenter -it ubuntu:14.04 bash | |
## in the docker | |
apt-get update | |
apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool |
diff --git a/lib/mkmf.rb b/lib/mkmf.rb | |
index 898e4a7..122cf19 100644 | |
--- a/lib/mkmf.rb | |
+++ b/lib/mkmf.rb | |
@@ -2206,7 +2206,7 @@ def init_mkmf(config = CONFIG, rbconfig = RbConfig::CONFIG) | |
$LOCAL_LIBS = "" | |
$cleanfiles = config_string('CLEANFILES') {|s| Shellwords.shellwords(s)} || [] | |
- $cleanfiles << "mkmf.log" | |
+ $cleanfiles << "mkmf.log .*.time" |
wget http://nginx.org/download/nginx-1.4.5.tar.gz | |
tar xzf nginx-1.4.5.tar.gz | |
wget http://zlib.net/zlib-1.2.8.tar.gz | |
tar xzf zlib-1.2.8.tar.gz | |
wget http://downloads.sourceforge.net/project/pcre/pcre/8.34/pcre-8.34.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2Fpcre%2F8.34%2F&ts=1393362418&use_mirror=kent | |
mv pcre-8.34.tar.bz2\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2Fpcre%2F8.34%2F pcre-8.34.tar.bz2 | |
tar xjf pcre-8.34.tar.bz2 |
### BEGIN INIT INFO | |
# Provides: unoconvd | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: unoconvd Converting documents to PDF by unoconv | |
### END INIT INFO | |
#!/bin/sh | |
case "$1" in |
#!/bin/bash | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
PREFIX="/usr/local" | |
RBENV_PREFIX="$PREFIX/rbenv" | |
BIN_PATH="$PREFIX/bin" | |
RBENV_GROUP="rbenv" | |
umask 002 | |
## Install rbenv, ruby-build and rbenv-gem-rehash | |
git clone git://github.com/sstephenson/rbenv.git $RBENV_PREFIX |
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |