Xin chào các bạn =))
Lại là mình đây, lâu lâu share tí cho có không khí vui vẻ.
Tính năng cơ bản:
upload các file video phổ biến.
Lưu trữ file: ổ local/ ổ mount Drive/ FTP
Tự load các file video có sẵn storage vps, ftp,cloud hoặc file upload thông qua vps tự đưa vào panel admin tạo link hls hoặc lấy link gốc.
Convert HLS ra link domain riêng ko lo hàng ngày bị fix như Tiktok, lh3.
On off watermark file m3u8 hls
Phân trang sll, tìm kiếm, thông tin tệp, tạo user upload riêng.
Import link từ Gg drive
Convert hls chỉ vài giây không logo, có logo thì render theo sức mạnh của vps.
PANEL: domain.com/login.php
admin/123456
Down code: Link data ở tệp đính kèm
Sửa config tại file config.php
VPS Cấu hình tối thiểu
2CPU
2G Ram
OS UBUNTU / AAPANEL
Apache 2.4
Php 7.4
MariaDB 10.11
FFmpeg 6.1.1
max_execution_time >= 9000s
install gói yt-dlp
NGINX CONFIG:
# MIME types cho file .m3u8 và .ts
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}server {
listen 80;
listen 443 ssl http2 ;
server_name yourdomain.com; # Sửa thành tên miền của bạn
root /www/wwwroot/yourdomain; # Sửa lại đường dẫn đến thư mục web chính
# Cho phép body lớn (upload file lớn)
client_max_body_size 2048M; # hoặc 4G, hoặc lớn hơn tuỳ nhu cầu
# (nếu dùng fastcgi, tăng timeout)
fastcgi_read_timeout 9000s;
# Đặt lại MIME types nếu nginx không nhận diện, hoặc để trong http {} cũng được
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}# CORS cho stream video (.m3u8/.ts)
location ~ \.(m3u8|ts)$ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods ‘GET, OPTIONS’;
add_header Access-Control-Allow-Headers ‘Range’;
if ($request_method = ‘OPTIONS’) {
add_header Access-Control-Max-Age 1728000;
add_header Content-Type ‘text/plain charset=UTF-8’;
add_header Content-Length 0;
return 204;
}
try_files $uri =404;
}# Error page chuyển hướng về blank.html
error_page 403 /blank.html;
error_page 404 /blank.html;
location = /blank.html {
internal;
}
}
Các bạn tự chỉnh các limit liên quan upload, timeout, process nếu có trên vps apache, nginx của bạn.




GIPHY App Key not set. Please check settings