Skip to content

Commit

Permalink
Upgrade Nginx and Nginx HTTP FLV module
Browse files Browse the repository at this point in the history
Signed-off-by: Zhizhen Tang <[email protected]>
  • Loading branch information
TangZhiZhen committed Sep 29, 2019
1 parent c94656a commit a900fcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cdn-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ ARG AUTOMAKE_REPO=https://ftp.gnu.org/pub/gnu/automake/automake-${AUTOMAKE_VER}.
RUN apt-get install -y -q automake

# Build nginx-http-flv
ARG NGINX_HTTP_FLV_VER=04dc8369b260c8c851f12fc30ea2f9df03f73c4e
ARG NGINX_HTTP_FLV_VER=10bd726e6c4c3033be9e6169ea259c9355e9223a
ARG NGINX_HTTP_FLV_REPO=https://github.com/winshining/nginx-http-flv-module.git

ARG NGINX_HTTP_FLV_PATCHES_RELEASE_VER=0.1
ARG NGINX_HTTP_FLV_PATCHES_RELEASE_VER=0.2
ARG NGINX_HTTP_FLV_PATCHES_RELEASE_URL=https://github.com/VCDP/CDN/archive/v${NGINX_HTTP_FLV_PATCHES_RELEASE_VER}.tar.gz
ARG NGINX_HTTP_FLV_PATCHES_PATH=/home/CDN-${NGINX_HTTP_FLV_PATCHES_RELEASE_VER}
RUN wget -O - ${NGINX_HTTP_FLV_PATCHES_RELEASE_URL} | tar xz
Expand All @@ -34,7 +34,7 @@ RUN git clone ${NGINX_HTTP_FLV_REPO} && \
find ${NGINX_HTTP_FLV_PATCHES_PATH}/Nginx-HTTP-FLV_patches -type f -name '*.patch' -print0 | sort -z | xargs -t -0 -n 1 patch -p1 -i;

# Build nginx & nginx-rtmp
ARG NGINX_VER=1.14.2
ARG NGINX_VER=1.15.12
ARG NGINX_REPO=https://nginx.org/download/nginx-${NGINX_VER}.tar.gz

RUN apt-get update && apt-get install -y -q --no-install-recommends libssl-dev libpcre3-dev zlib1g-dev libxslt1-dev
Expand Down
12 changes: 6 additions & 6 deletions doc/CDN_Transcode_Sample_Getting_Started_Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ As mentioned above, Streaing Server is not a must, you can skip this section if
```sh
sudo apt-get install -y ffmpeg
```
- Install Nginx and Nginx RTMP Module
- Install Nginx and Nginx HTTP FLV Module
```
git clone https://github.com/arut/nginx-rtmp-module.git
git clone https://github.com/winshining/nginx-http-flv-module.git
wget http://nginx.org/download/nginx-1.14.2.tar.gz
tar -xvzf nginx-1.14.2.tar.gz
cd nginx-1.14.2
./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --add-module=/path/to/nginx-rtmp-module
wget http://nginx.org/download/nginx-1.15.12.tar.gz
tar -xvzf nginx-1.15.12.tar.gz
cd nginx-1.15.12
./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --add-module=/path/to/nginx-http-flv-module
make && sudo make install
```

Expand Down

0 comments on commit a900fcd

Please sign in to comment.