Skip to content
Snippets Groups Projects
Verified Commit 299c85b8 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Zmena url callbacku, primy pristup k hls

parent 774e6063
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,10 @@ rtmp {
application stream {
live on;
on_publish http://pitube:3000/callback;
on_publish_done http://pitube:3000/callback;
on_update http://pitube:3000/callback;
on_publish http://pitube:3000/callback/rtmp;
on_publish http://pitube:3000/callback/rtmp;
on_publish_done http://pitube:3000/callback/rtmp;
on_update http://pitube:3000/callback/rtmp;
notify_update_timeout 15s;
# -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -preset superfast -profile:v baseline
......@@ -63,12 +64,8 @@ http {
server {
listen ${HTTP_PORT};
location / {
proxy_pass http://pitube:3000/;
add_header Access-Control-Allow-Origin *;
}
location /hls {
auth_request /callback/hls;
alias /tmp/hls;
types {
application/vnd.apple.mpegurl m3u8;
......@@ -92,5 +89,12 @@ http {
default_type text/xml;
expires 24h;
}
location / {
proxy_pass http://pitube:3000/;
add_header Access-Control-Allow-Origin *;
proxy_set_header X-Original-URI $request_uri;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment