Skip to content

Commit 52e609b

Browse files
committed
add mp4
1 parent fc0b275 commit 52e609b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

nginx/partial/javascript-static

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ location ~ \.v.*?\. {
2929
rewrite ^(.*?)(\.v.*?)(\..+)$ $1$3 last;
3030
}
3131

32+
location ~ \.mp4$ {
33+
mp4;
34+
mp4_buffer_size 1m;
35+
mp4_max_buffer_size 5m;
36+
mp4_limit_rate on;
37+
mp4_limit_rate_after 30s;
38+
}
39+
3240
# anything with an extension in basename
3341
location ~ \.\w+$ {
3442
access_log off;

0 commit comments

Comments
 (0)