Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 93fd3fd608 |
@@ -1,6 +0,0 @@
|
||||
FROM docker.angie.software/angie:1.11.4-alpine
|
||||
|
||||
RUN apk add --no-cache ffmpeg curl ca-certificates
|
||||
|
||||
COPY angie.conf /etc/angie/angie.conf
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# package: angie-module-rtmp
|
||||
load_module modules/ngx_rtmp_module.so;
|
||||
|
||||
user angie;
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 65536;
|
||||
|
||||
error_log /var/log/angie/error.log notice;
|
||||
pid /run/angie/angie.pid;
|
||||
|
||||
events {
|
||||
worker_connections 2048;
|
||||
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/angie/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
log_format extended '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" rt="$request_time" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||
'h="$host" sn="$server_name" ru="$request_uri" u="$uri" '
|
||||
'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" '
|
||||
'uct="$upstream_connect_time" urt="$upstream_response_time"';
|
||||
|
||||
access_log /var/log/angie/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
|
||||
include /etc/angie/http.d/*.conf;
|
||||
}
|
||||
|
||||
rtmp {
|
||||
include /etc/angie/rtmp.d/*.conf;
|
||||
}
|
||||
|
||||
+6
-5
@@ -1,13 +1,14 @@
|
||||
services:
|
||||
restream:
|
||||
#image: docker.angie.software/angie:1.11.4-alpine
|
||||
build: angie_rtmp
|
||||
build: nginx_rtmp
|
||||
restart: unless-stopped
|
||||
container_name: restream
|
||||
volumes:
|
||||
- ./web:/usr/share/angie/html:ro
|
||||
- ./rtmp.conf:/etc/angie/rtmp.d/rtmp.conf:ro
|
||||
- ./http.conf:/etc/angie/http.d/default.conf:ro
|
||||
- ./web/index.html:/var/www/web/index.html:ro
|
||||
- ./web/stat.xsl:/var/www/web/stat.xsl:ro
|
||||
- ./web/rtmp/stat.xsl:/var/www/web/rtmp/stat.xsl:ro
|
||||
- ./rtmp.conf:/etc/nginx/rtmp.d/rtmp.conf:ro
|
||||
- ./http.conf:/etc/nginx/http.d/default.conf:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
environment:
|
||||
|
||||
@@ -3,7 +3,7 @@ server {
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/angie/html;
|
||||
root /var/www/web;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ server {
|
||||
rtmp_stat_stylesheet stat.xsl;
|
||||
}
|
||||
location /stat.xsl {
|
||||
root /usr/share/angie/html/rtmp;
|
||||
root /var/www/web/rtmp;
|
||||
}
|
||||
|
||||
# rtmp control
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM docker.io/library/alpine:3.23
|
||||
|
||||
RUN apk add --no-cache curl ca-certificates nginx-mod-rtmp librtmp ffmpeg nginx
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
CMD ["nginx"]
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
user nginx;
|
||||
|
||||
worker_processes auto;
|
||||
|
||||
daemon off;
|
||||
error_log /dev/stdout info;
|
||||
|
||||
pcre_jit on;
|
||||
|
||||
include /etc/nginx/modules/*.conf;
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server_tokens off;
|
||||
client_max_body_size 1m;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_session_cache shared:SSL:2m;
|
||||
ssl_session_timeout 1h;
|
||||
ssl_session_tickets off;
|
||||
|
||||
gzip_vary on;
|
||||
|
||||
# Helper variable for proxying websockets.
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /dev/stdout;
|
||||
include /etc/nginx/http.d/*.conf;
|
||||
}
|
||||
|
||||
rtmp {
|
||||
access_log /dev/stdout;
|
||||
include /etc/nginx/rtmp.d/*.conf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user