# Transcoder Server 1.1 public Digital Eliteboard Version
# made by maxdata755
# maxdata755.online
#
user root;
worker_processes 1;
worker_rlimit_nofile 500000;
error_log logs/error.log debug;
events {
worker_connections 3000;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server_tokens off;
gzip on;
server {
listen 8080;
server_name localhost;
# rtmp stat
location /stat {
auth_basic "Restricted area";
auth_basic_user_file users;
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
root /usr/local/nginx/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php(?:$|/) {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application rtmp{
live on;
meta off;
exec_options on;
#on_publish
Sie müssen registriert sein, um Links zu sehen.
on_play
Sie müssen registriert sein, um Links zu sehen.
notify_method get;
include rtmp.conf;
hls on;
hls_path /usr/local/nginx/html/hls;
hls_sync 100ms;
}
}
}