feat: add nginx media & cdn from web1

This commit is contained in:
2024-07-20 10:24:05 +00:00
parent 68b48fd211
commit 342e950274
6 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
server {
autoindex on;
autoindex_localtime on;
listen 5051;
root /var/www/cdn/;
add_header Vary Accept-Encoding;
add_header Access-Control-Allow-Origin $http_origin;
location /videos/{
default_type video/mp4;
limit_rate 2m;
autoindex on;
}
}