自动把文件夹显示成相册、自动设置首图预览图
之前一直使用files.photo.gallery,一开始看它官网就看到他主页是另一个主打图片预览的程序X3
今天就试了一下,作者也是良心,授权$75刀,不授权也可以用,但是网站底下显示他们官网的地址
相信这个难不了大佬们
安装教程:https://www.photo.gallery/docs/setup/
下载程序上传到网站根目录
https://www.photo.gallery/downloads/
(mini和full没啥区别,多了演示文件)
打开网址会主动检测
nginx还需要设置伪静态
- location / {
- if (!-e $request_filename){
- # Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists
- rewrite (.+)\.(html|json|xml|atom|rss)$ $1/ last;
- # Rewrite any calls to /render to the X3 image resizer
- rewrite ^/render/. /app/parsers/slir/ last;
- # Rewrite routes to X3 application index.php if they are non-existent files/dirs
- rewrite ^(.*)$ /index.php?$1 last;
- }
- }
- # Prevent web access to X3 /config and /_cache directories
- location ~ /(config|_cache) {
- deny all;
- }
复制代码
登录后台:(虽然有中文,但是非常不完整)
http://localhost/panel/
账号密码 admin/admin
按要求去Settings › Advanced 关了Disable diagnostics就能访问首页了。
评论抢沙发