Commit 90d6b989 authored by hatsch's avatar hatsch
Browse files

Fix parameters, syntax.

parent 6842646c
......@@ -15,7 +15,7 @@ See defaults/main.yal
Dependencies
------------
Install ansible locally
Example Playbook
......
......@@ -6,10 +6,9 @@ server {
server_name {{rtmp_hostname }};
root {{ nginx_rtmp_base_dir }}/{{rtmp_hostname }};
index index.html;
access_log /var/log/nginx/{{ rtmp_hostname }}_access.log;
error_log /var/log/nginx/{{ rtmp_hostname }}error.log;
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet /style.xsl;
......@@ -21,7 +20,7 @@ server {
location /style.xsl {
root /var/www/{{ rtmp_hostname }}/;
root {{ nginx_rtmp_base_dir }}/{{ rtmp_hostname }}/;
}
......
......@@ -45,16 +45,18 @@
#
location /hls/{{ rtmp_user }}/{{ rtmp_stream_id }} {
error_log {{ nginx_rtmp_base_dir }}/{{ rtmp_hostname }}/{{ rtmp_user }}/logs/{{ rtmp_stream_id }}/{{ rtmp_hostname }}_{{ rtmp_user }}_{{ rtmp_stream_id }}_error.log;
access_log {{ nginx_rtmp_base_dir }}/{{ rtmp_hostname }}/{{ rtmp_user }}/logs/{{ rtmp_stream_id }}/{{ rtmp_hostname }}_{{ rtmp_user }}_{{ rtmp_stream_id }}_access.log json_combined;
alias {{ nginx_rtmp_base_dir }}/{{ rtmp_hostname }}/{{ rtmp_user }}/hls/{{ rtmp_stream_id }};
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers accept;
try_files $uri $uri/ =404;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers accept;
try_files $uri $uri/ =404;
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment