从机不会调用vips和ffmpeg生成图片和视频缩略图,在开启生成器代理后主机能代理生成缩略图,主机和从机的环境是同一个docker镜像,已通过命令行确定vips和ffmpeg可用,检查日志未发现任何报错,初步判断为从机根本没有调用vips和ffmpeg
以下是根据教程配置的从机配置文件
[System]
Mode = slave
[Slave]
Secret = *************
; 回调请求超时时间 (s)
CallbackTimeout = 60
; ; 签名有效期
SignatureTTL = 120
[CORS]
AllowOrigins =
AllowMethods = OPTIONS,GET,POST
AllowHeaders =
AllowCredentials = false
SameSite = Default
Secure = lse
; 从机配置覆盖
[OptionOverwrite]
; 任务队列最多并行执行的任务数
max_worker_num = 50
; 任务队列中转任务传输时,最大并行协程数
max_parallel_transfer = 10
; 中转分片上传失败后重试的最大次数
chunk_retries = 10
; 缩略图配置
thumb_width = 400
thumb_height = 300
thumb_file_suffix = ._thumb
thumb_max_task_count = -1
thumb_encode_method = jpg
thumb_gc_after_gen = 0
thumb_encode_quality = 85
thumb_builtin_enabled = 1
thumb_ffmpeg_enabled = 1
thumb_ffmpeg_path = ffmpeg
thumb_ffmpeg_exts = 3g2,3gp,asf,asx,avi,divx,flv,m2ts,m2v,m4v,mkv,mov,mp4,mpeg,mpg,mts,mxf,ogv,rm,swf,webm,wmv
thumb_ffmpeg_seek = 00:00:01.00
thumb_libreoffice_enabled = 0
thumb_libreoffice_path = soffice
thumb_libreoffice_exts = pptx,docx
thumb_vips_enabled = 1
thumb_vips_path = vips
thumb_vips_exts = csv,mat,img,hdr,pbm,pgm,ppm,pfm,pnm,svg,svgz,j2k,jp2,jpt,j2c,jpc,gif,png,jpg,jpeg,jpe,webp,tif,tiff,fits,fit,fts,exr,jxl,pdf,heic,heif,avif,svs,vms,vmu,ndpi,scn,mrxs,svslide,bif,raw