Added Docker files, and removed RTMP server additions, added NGinx files (didn't added source NGinx files, docker will add them)
This commit is contained in:
26
nginx/Dockerfile
Normal file
26
nginx/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
libpcre3 libpcre3-dev \
|
||||
libssl-dev \
|
||||
zlib1g-dev \
|
||||
wget git
|
||||
|
||||
# Download and build NGINX with RTMP
|
||||
RUN wget http://nginx.org/download/nginx-1.25.2.tar.gz && \
|
||||
tar -xzvf nginx-1.25.2.tar.gz && \
|
||||
git clone https://github.com/arut/nginx-rtmp-module.git && \
|
||||
cd nginx-1.25.2 && \
|
||||
./configure --add-module=../nginx-rtmp-module --with-http_ssl_module && \
|
||||
make && make install
|
||||
|
||||
# Copy custom NGINX configuration
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Expose RTMP and HTTP ports
|
||||
EXPOSE 1935
|
||||
|
||||
# Start NGINX
|
||||
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
|
||||
12
nginx/nginx.conf
Normal file
12
nginx/nginx.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
rtmp {
|
||||
server {
|
||||
listen 1935;
|
||||
chunk_size 4096;
|
||||
|
||||
application live {
|
||||
live on;
|
||||
record off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user