视频下载服务搭建—AllTube

  1. 一、alltube简要说明
    1. 相关地址
  2. 二、手动搭建
  3. 三、docker搭建
  4. 四、其他视频下载站

一、alltube简要说明

相关地址

官方Demo地址:https://alltubedownload.net/
GitHub地址:https://github.com/Rudloff/alltube (2.5k star)

二、手动搭建

从项目主页下载后解压:
AllTube服务器下载

1
2
3
4
5
6
wget https://github.com/Rudloff/alltube/releases/download/3.1.0/alltube-3.1.0.zip
unzip alltube-3.1.0.zip
mv alltube /www/wwwroot/
chmod 777 -R /www/wwwroot/alltube
chown www-data -R /www/wwwroot/alltube
chgrp www-data -R /www/wwwroot/alltube

将解压后的目录复制到web服务目录,然后nginx反代,这里要注意,用http模式是无法解析视频的,一定要用https模式(需要证书)方可。
附:nginx:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
server {
listen 80;
server_name xx.xxx.xx;
rewrite ^(.*) https://xx.xxx.xx$1 permanent;
}

server {
server_name xx.xxx.xx;
listen 443 ssl;

root /www/wwwroot/alltube;
index index.php;

access_log /var/log/nginx/alltube.access.log;
error_log /var/log/nginx/alltube.error.log;

types {
text/html html htm shtml;
text/css css;
text/xml xml;
application/x-web-app-manifest+json webapp;
}

# Deny access to dotfiles
location ~ /\. {
deny all;
}

location / {
try_files $uri /index.php?$args;
}

location ~ \.php$ {
try_files $uri /index.php?$args;

fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_intercept_errors off;

fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;

include fastcgi_params;
}
}

重启nginx应用

1
sudo systemctl restart nginx

三、docker搭建

1
2
3
4
5
6
7
8
9
10
11
12
version: '3.3'
services:
alltube:
container_name: alltube
ports:
- '5993:80' # 5993可以改成任意vps上未使用过的端口,80不要改
environment:
- PUID=0 # 稍后在终端输入id可以查看当前用户的id
- PGID=0 # 同上
- TZ=Asia/Shanghai
restart: always
image: rudloff/alltube

四、其他视频下载站

https://alltubedownload.com/


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 jaytp@qq.com

×

喜欢就点赞,疼爱就打赏