Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

67 lines (52 sloc) 1.35 KB
# internal location for vod subrequests
location ~ /media_proxy/[^/]+/(.*) {
internal;
proxy_pass http://media/$1;
proxy_http_version 1.1;
proxy_set_header Host @MEDIA_HOST@;
proxy_set_header Connection "";
}
# base locations
include @NGINX_CONF_PATH@/base.conf;
# serve flavor progressive
location /pd/ {
vod none;
directio 512;
output_buffers 1 512k;
include @NGINX_CONF_PATH@/cors.conf;
}
# serve flavor HLS
location /hls/ {
vod hls;
vod_bootstrap_segment_durations 2000;
vod_bootstrap_segment_durations 2000;
vod_bootstrap_segment_durations 2000;
vod_bootstrap_segment_durations 4000;
include @NGINX_CONF_PATH@/cors.conf;
}
# serve flavor DASH
location /dash/ {
vod dash;
vod_segment_duration 4000;
vod_dash_manifest_format segmenttemplate;
vod_manifest_duration_policy min;
include @NGINX_CONF_PATH@/cors.conf;
}
# serve flavor HDS
location /hds/ {
vod hds;
vod_segment_duration 6000;
vod_segment_count_policy last_rounded;
include @NGINX_CONF_PATH@/cors.conf;
}
# serve flavor MSS
location /mss/ {
vod mss;
vod_segment_duration 4000;
vod_manifest_segment_durations_mode accurate;
include @NGINX_CONF_PATH@/cors.conf;
}
# static files (crossdomain.xml, robots.txt etc.) + fallback to api
location / {
root @STATIC_FILES_PATH@;
}
You can’t perform that action at this time.