Commit 7eef610c authored by hark's avatar hark

bla

parent 9cfb3ebd
Pipeline #1222 canceled with stage
......@@ -49,6 +49,20 @@ rtmp {
http {
access_log /dev/stdout combined;
map $request_uri $expires {
default 1m;
~*(.+\.ts)$ 1d;
~*(.+\.m3u8)$ 4;
}
map $request_uri $control {
default "public , s-maxage = 1m, max-age = 1m";
~*(.+\.ts)$ "public , immutable , s-maxage = 1d, max-age = 1m";
~*(.+\.m3u8)$ "public, s-maxage = 4, max-age = 4";
#~*wordpress_logged_in "private, no-cache, no-store";
}
server {
listen 80;
root /opt/data;
......@@ -71,17 +85,6 @@ http {
# add_header Cache-Control: immutable;
#}
map $request_uri $expires {
default 1m;
~*(.+\.ts)$ 1d;
~*(.+\.m3u8)$ 4;
}
map $request_uri $control {
default "public , s-maxage = 1m, max-age = 1m";
~*(.+\.ts)$ "public , immutable , s-maxage = 1d, max-age = 1m";
~*(.+\.m3u8)$ "public, s-maxage = 4, max-age = 4";
#~*wordpress_logged_in "private, no-cache, no-store";
}
#rewrite ^/$ http://${SD_HOST_HLS_CACHE}/player redirect;
......
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