Spaces:
Paused
Paused
File size: 2,618 Bytes
5afa8d3 4c272c9 5afa8d3 005d41d 4c272c9 5afa8d3 005d41d 4c272c9 5afa8d3 005d41d 5afa8d3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
worker_processes 1;
pid /tmp/nginx/nginx.pid;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
allow publish all;
allow play all;
}
application hls {
live on;
hls on;
hls_path /tmp/nginx/html/media/hls;
hls_fragment 3;
hls_playlist_length 9;
hls_variant _subsd BANDWIDTH=400000;
hls_variant _sd BANDWIDTH=1000000;
hls_variant _hd BANDWIDTH=5000000;
allow publish all;
allow play all;
}
application rhls {
live on;
hls on;
hls_path /tmp/nginx/html/media/rhls;
hls_fragment 3;
hls_playlist_length 9;
record all;
record_path /tmp/nginx/html/media/recordings;
record_unique on;
record_append off;
hls_variant _subsd BANDWIDTH=400000;
hls_variant _sd BANDWIDTH=1000000;
hls_variant _hd BANDWIDTH=5000000;
allow publish all;
allow play all;
}
}
}
http {
include /tmp/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# Writable logs
error_log /tmp/nginx/error.log info;
access_log /tmp/nginx/access.log;
# Temp path must be inside http block
#client_body_temp_path /tmp/nginx/proxy_temp;
server {
listen 7860;
# Serve HLS from /tmp/media/hls
location / {
root /tmp/nginx/html;
index index.html;
}
location /hls {
root /tmp/nginx/html/media;
types { application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
autoindex on;
}
location /rhls {
root /tmp/nginx/html/media;
types { application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
autoindex on;
}
location /recordings {
root /tmp/nginx/html/media;
add_header Cache-Control no-cache;
autoindex on;
}
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
}
}
|