Enable HTTP2

This commit is contained in:
Ingo Oppermann
2019-03-20 17:03:08 +01:00
parent cb141900e6
commit 98b3905c4b
5 changed files with 20 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ RUN mkdir -p /dist && cd /dist && \
curl -OL "https://github.com/arut/nginx-rtmp-module/archive/v${NGINXRTMP_VERSION}.tar.gz" && \
tar -xvz -f "v${NGINXRTMP_VERSION}.tar.gz" && \
cd nginx-${NGINX_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
make -j$(nproc) && \
make install
@@ -122,6 +122,7 @@ RUN apt-get update && \
git \
procps \
libpcre3 \
openssl \
libssl1.1 \
zlib1g \
v4l-utils \
@@ -146,7 +147,7 @@ RUN cd /restreamer && \
EXPOSE 8080
EXPOSE 8181
VOLUME ["/restreamer/db"]
CMD ["./run.sh"]

View File

@@ -77,7 +77,7 @@ RUN mkdir -p /dist && cd /dist && \
curl -OL "https://github.com/arut/nginx-rtmp-module/archive/v${NGINXRTMP_VERSION}.tar.gz" && \
tar -xvz -f "v${NGINXRTMP_VERSION}.tar.gz" && \
cd nginx-${NGINX_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
make -j$(nproc) && \
make install
@@ -112,6 +112,7 @@ RUN apt-get update && \
git \
procps \
libpcre3 \
openssl \
libssl-dev \
zlib1g \
v4l-utils \
@@ -134,10 +135,9 @@ RUN cd /restreamer && \
curl && \
apt-get autoremove -y
ENV RS_USERNAME admin
ENV RS_PASSWORD datarhei
EXPOSE 8080
EXPOSE 8181
VOLUME ["/restreamer/db"]
CMD ["./run.sh"]

View File

@@ -77,7 +77,7 @@ RUN mkdir -p /dist && cd /dist && \
curl -OL "https://github.com/arut/nginx-rtmp-module/archive/v${NGINXRTMP_VERSION}.tar.gz" && \
tar -xvz -f "v${NGINXRTMP_VERSION}.tar.gz" && \
cd nginx-${NGINX_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
make -j$(nproc) && \
make install
@@ -112,6 +112,7 @@ RUN apt-get update && \
git \
procps \
libpcre3 \
openssl \
libssl1.1 \
zlib1g \
v4l-utils \
@@ -135,6 +136,8 @@ RUN cd /restreamer && \
apt autoremove -y
EXPOSE 8080
EXPOSE 8181
VOLUME ["/restreamer/db"]
CMD ["./run.sh"]

View File

@@ -77,7 +77,7 @@ RUN mkdir -p /dist && cd /dist && \
curl -OL "https://github.com/arut/nginx-rtmp-module/archive/v${NGINXRTMP_VERSION}.tar.gz" && \
tar -xvz -f "v${NGINXRTMP_VERSION}.tar.gz" && \
cd nginx-${NGINX_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --add-module=/dist/nginx-rtmp-module-${NGINXRTMP_VERSION} && \
make -j$(nproc) && \
make install
@@ -112,6 +112,7 @@ RUN apt-get update && \
git \
procps \
libpcre3 \
openssl \
libssl1.1 \
zlib1g \
v4l-utils \
@@ -135,7 +136,8 @@ RUN cd /restreamer && \
apt autoremove -y
EXPOSE 8080
EXPOSE 8181
VOLUME ["/restreamer/db"]
CMD ["./run.sh"]

View File

@@ -1,6 +1,6 @@
daemon off;
error_log stderr notice;
error_log stderr error;
worker_processes 1;
events {
@@ -43,9 +43,9 @@ http {
gzip_min_length 1000;
gzip_types text/css application/javascript;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:2m;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_session_tickets off;
ssl_ecdh_curve secp384r1;
@@ -54,7 +54,7 @@ http {
ssl_prefer_server_ciphers on;
# openssl dhparam -out dhparam.pem 2048
#ssl_dhparam ../certs/dhparam2048.pem;
#ssl_dhparam ../db/dhparam.pem;
#ssl_stapling on;
#ssl_stapling_verify on;
@@ -66,7 +66,7 @@ http {
server {
listen 8080;
listen 8181 ssl;
listen 8181 ssl http2;
root /restreamer/src/webserver/public;
include /usr/local/nginx/conf/mime.types;
location / {