's'
This commit is contained in:
41
services/srs/conf/srs.conf
Normal file
41
services/srs/conf/srs.conf
Normal file
@@ -0,0 +1,41 @@
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
srt_server {
|
||||
enabled on;
|
||||
listen 10080;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
tcp_nodelay on;
|
||||
min_latency on;
|
||||
play {
|
||||
gop_cache off;
|
||||
queue_length 1;
|
||||
}
|
||||
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
|
||||
hls {
|
||||
enabled on;
|
||||
hls_path ./objs/nginx/html;
|
||||
hls_fragment 3;
|
||||
hls_window 18;
|
||||
}
|
||||
}
|
||||
16
services/srs/docker-compose.yml
Normal file
16
services/srs/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
srs:
|
||||
image: ossrs/srs:5
|
||||
container_name: live-srs
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${SRS_RTMP_PORT:-1935}:1935"
|
||||
- "${SRS_API_PORT:-1985}:1985"
|
||||
- "${SRS_HTTP_PORT:-8080}:8080"
|
||||
- "${SRS_SRT_PORT:-10080}:10080/udp"
|
||||
volumes:
|
||||
- ./conf/srs.conf:/usr/local/srs/conf/live.conf:ro
|
||||
- ./data:/usr/local/srs/objs/nginx/html
|
||||
command: ["./objs/srs", "-c", "conf/live.conf"]
|
||||
Reference in New Issue
Block a user