diff --git a/config/frontend/config.yml.dist b/config/frontend/config.yml.dist new file mode 100644 index 0000000..23b0fd9 --- /dev/null +++ b/config/frontend/config.yml.dist @@ -0,0 +1,25 @@ +# This is the title and Subtitle displayed on the Head of the Page +pagetitle: vod-rtmp +subtitle: v1 + +# the footer +footer: "© 2021 by the zom.bi Team" + +# the ip or hostname used to generate rtmp URLs +rtmp_base: stream.example.com + +# this is the base url used to generate internal links +base_url: 127.0.0.1:5001 + +# the url to the nginx servers status page. +# this is used for discovering the running streams +# if you are running the docker-compose setup you don't need to change that. +stat_url : http://nginx-rtmp:18080/stat + +# web protocol - used for generating hls and internal links. +# change this to https if you are using https for example via traefik in front of this setup +web_proto: http + +# if you want to add another template you can place it in the "templates" folder +# leave it at "default" to use the included default template +template_folder: default diff --git a/config/frontend/uwsgi.ini b/config/frontend/uwsgi.ini new file mode 100644 index 0000000..ee7ce40 --- /dev/null +++ b/config/frontend/uwsgi.ini @@ -0,0 +1,10 @@ +[uwsgi] +master = true +socket = 0.0.0.0:5001 +lazy-apps = true +processes = 4 +threads = 2 +protocol = http +wsgi-file = app.py +callable = web +offload-threads = 4 diff --git a/rtmp/nginx.conf b/rtmp/nginx.conf index 6f68fd9..366f3b9 100644 --- a/rtmp/nginx.conf +++ b/rtmp/nginx.conf @@ -107,7 +107,7 @@ rtmp { ## These option go beyond the scope of this configuration file as it contains lots of info. Please visit this url for more info: ## ## https://github.com/arut/nginx-rtmp-module/wiki/Directives#notify ## publish_notify on; ## on|off. Send "NetStream.Play.PublishNotify" & "NetStream.Play.UnpublishNotify" to subscribers. Default=off - on_publish http://auth:8081/auth; + on_publish http://auth:8081/; notify_method get; # on_play http://www.example.com/plugin/Live/on_play.php; # on_record_done http://www.example.com/plugin/Live/on_record_done.php';