https://hub.docker.com/r/xhofe/alist
https://github.com/Xhofe/alist
docker run -d --restart=always --name alist -v /data/site/docker/data/alist:/opt/alist/data -p 89:5244 -e PUID=0 -e PGID=0 -e UMASK=022 -v /etc/localtime:/etc/localtime:ro -e TZ='Asia/Shanghai' -v /data/site/htmltoo.f/htmltoo.up:/data xhofe/alist:main
http://g.htmltoo.com:89/
-查看随机密码
docker exec -it alist ./alist admin random
-修改密码
docker exec -it alist ./alist admin set wdqdmm@0
-v
-v /etc/alist:/opt/alist/data
chown -R admin.admin /data/site/docker/data/alist/
chmod -R 777 /data/site/docker/data/alist/
---Iframe 预览
https://alist-org.github.io/pdf.js/
https://github.com/mozilla/pdf.js/releases
"PDF.js":"https://alist-org.github.io/pdf.js/web/viewer.html?file=$e_url"
->
"PDF.js":"http://up.htmltoo.com/pdfjs/web/viewer.html?file=$e_url"
"EPUB.js":"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url"
->https://github.com/futurepress/epubjs-reader/
"EPUB.js":"http://up.htmltoo.com/epubjs/?bookPath=$e_url"
-预览,官方
{
"doc,docx,xls,xlsx,ppt,pptx": {
"Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$e_url",
"Google":"https://docs.google.com/gview?url=$e_url&embedded=true"
},
"pdf": {
"PDF.js":"http://up.htmltoo.com/pdfjs/web/viewer.html?file=$e_url"
},
"epub": {
"EPUB.js":"http://up.htmltoo.com/epubjs/viewer.html?url=$e_url"
}
}
-预览,官方
{
"doc,docx,xls,xlsx,ppt,pptx": {
"Microsoft":"https://view.officeapps.live.com/op/view.aspx?src=$e_url",
"Google":"https://docs.google.com/gview?url=$e_url&embedded=true"
},
"pdf": {
"PDF.js":"https://alist-org.github.io/pdf.js/web/viewer.html?file=$e_url"
},
"epub": {
"EPUB.js":"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url"
}
}