2020-08-22 20:25:57 +00:00
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
|
|
|
|
vod_segment_duration 2000;
|
2022-06-29 03:58:37 +00:00
|
|
|
vod_hls_mpegts_align_pts on;
|
|
|
|
vod_hls_mpegts_align_frames off;
|
|
|
|
vod_hls_force_unmuxed_segments on;
|
|
|
|
vod_force_playlist_type_vod on;
|
|
|
|
vod_force_continuous_timestamps on;
|
2020-08-22 20:25:57 +00:00
|
|
|
vod_manifest_segment_durations_mode accurate;
|
|
|
|
vod_align_segments_to_key_frames on;
|
|
|
|
vod_output_buffer_pool 64k 32;
|
|
|
|
|
|
|
|
vod_dash_fragment_file_name_prefix "seg";
|
|
|
|
vod_hls_segment_file_name_prefix "seg";
|
|
|
|
|
|
|
|
# shared memory zones
|
|
|
|
vod_response_cache vod_response_cache 128m;
|
|
|
|
vod_metadata_cache vod_meta_cache 2048m;
|
|
|
|
vod_performance_counters perf_counters;
|
|
|
|
|
|
|
|
reset_timedout_connection on;
|
|
|
|
send_timeout 20;
|
|
|
|
|
|
|
|
# manifest compression
|
|
|
|
gzip on;
|
|
|
|
gzip_types application/vnd.apple.mpegurl video/f4m application/dash+xml text/xml text/vtt;
|
|
|
|
gzip_proxied any;
|
|
|
|
|
|
|
|
open_file_cache max=1000 inactive=10m;
|
|
|
|
open_file_cache_valid 3m;
|
|
|
|
open_file_cache_min_uses 1;
|
|
|
|
open_file_cache_errors off;
|
|
|
|
aio on;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name gdq-a.hls.edge.streaminginter.net;
|
|
|
|
root /htdocs;
|
|
|
|
|
|
|
|
include conf.d/cors.conf;
|
|
|
|
|
|
|
|
vod_base_url https://gdq-a.hls.edge.streaminginter.net;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
vod hls;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name gdq-a.dash.edge.streaminginter.net;
|
|
|
|
root /htdocs;
|
|
|
|
|
|
|
|
include conf.d/cors.conf;
|
|
|
|
|
|
|
|
vod_base_url https://gdq-a.dash.edge.streaminginter.net;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
vod dash;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name thumb-gdq-a.edge.streaminginter.net;
|
|
|
|
root /htdocs;
|
|
|
|
|
|
|
|
location / {
|
2023-01-08 10:07:44 +00:00
|
|
|
# https://thumb-gdq-a.edge.streaminginter.net/agdq2022vods/073_GeoGuessr.mp4/thumb-90000-w288.jpg
|
|
|
|
# => https://gdq-a.upstream.streaminginter.net/agdq2022vods/073_GeoGuessr_288w.jpg
|
|
|
|
root /htdocs;
|
|
|
|
rewrite ^(.+)\.mp4/thumb-\d+-w(\d+)\.jpg$ /$1_$2w.jpg break;
|
|
|
|
|
|
|
|
#vod thumb;
|
2020-08-22 20:25:57 +00:00
|
|
|
|
|
|
|
expires 2d;
|
|
|
|
access_log off;
|
|
|
|
add_header Cache-Control "public";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-04 01:39:12 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name thumb.streamserver;
|
|
|
|
root /htdocs;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
vod thumb;
|
|
|
|
|
|
|
|
expires 2d;
|
|
|
|
access_log off;
|
|
|
|
add_header Cache-Control "public";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name streamserver;
|
|
|
|
root /htdocs;
|
|
|
|
}
|
|
|
|
|
2020-08-22 20:25:57 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name gdq-a.upstream.streaminginter.net;
|
|
|
|
root /htdocs;
|
|
|
|
|
|
|
|
location ~ (.*\.(mp4|mkv|mp3|aac|ogg|mpg|ogv|oga|m4a|m4v|mov)) {
|
|
|
|
add_header Content-disposition "attachment";
|
|
|
|
}
|
|
|
|
}
|