rtmp/nginx.conf

46 lines
823 B
Nginx Configuration File

user www-data;
worker_processes auto;
rtmp_auto_push on;
events {
worker_connections 768;
}
# http {
# server {
# listen 80;
# server_name localhost;
# root /var/www/html/stream-auth;
# # location / {
# # proxy_pass http://unix:/run/gunicorn.sock;
# # }
# }
# }
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
deny play all;
record all;
record_path /var/rec/;
record_max_size 1000000K;
#notify_method get;
#hls on;
#record off;
#hls_path /var/www/html/stream/hls;
#hls_fragment 3;
#hls_playlist_length 60;
dash on;
dash_path /var/www/html/stream;
on_publish http://apache/stream_auth/auth.php;
# on_publish http://127.0.0.1:8080/publish_check;
# on_publish http://127.0.0.1:8079/publish_check;
}
}
}