Giter VIP home page Giter VIP logo

oneindex's Introduction

Oneindex Bottle Edition.
(๑•̀ㅂ•́)و✧ Original Program by Donwa.

star fork GitHub last commit issues Author Download

停止更新

因为程序可维护性不高,目前不再对这个仓库进行维护。取而代之的是另一个项目:
https://github.com/SomeBottle/OdIndex

缘由

之前听网友介绍了入了one的大门,结果鼓捣oneindex时我的历程很不顺利,一会儿文件列表出不来,一会儿jwt token又过期了...
于是我修改了一下,缓解了部分问题.稍后可能会加入更多功能.

修改内容

  1. 密码md5密文保存
  2. 自动判断HTTP 429请求过多的错误,并自动限制刷新的时间间隔,自动调整刷新周期.(如果没有到周期会返回提示)↓

详细配置可以自行去 /config/refreshfix.php 进行修改,refreshinterval 是刷新允许周期,maxretrytime 是自动调整周期前允许重试的次数.

  1. 防止request失败导致的空文件目录.((づ ̄3 ̄)づ拒绝首页空白)
  2. 增加简单的状态码&出错日志(在 /lib 目录下生成).( requestcode.txt & requestlog.php)
  3. nexmoe主题增加了一次性缩略图的加载限制,最多预览五十张(防止请求过多被限制)
  4. 增加缓存刷新结果,如果刷新失败,后台会显示重建缓存失败,CLI模式在 one.php 执行刷新时如果失败会返回Failed
    Example
  5. 文件缓存过期引用时自动刷新

店长推荐(误

crontab 选项推荐[可选],非必需:

  1. token自动刷新: 两小时
0 */2 * * * * php /www/one.php token:refresh
  1. cache自动刷新: 30分钟
*/30 * * * * php /www/one.php cache:refresh

设置选项推荐:

  • base.phpcache_refresh_time 推荐为 3600(秒)
  • 缓存类型推荐为 filecache
  • 缓存过期时间推荐为 86400 (秒)
  • 自动调整周期前允许重试的次数(/config/refreshfix.php中的maxretrytime)推荐为 8

Nginx伪静态规则配置:

 if (!-f $request_filename){  
set $rule_0 1$rule_0;  
}  
if (!-d $request_filename){  
set $rule_0 2$rule_0;  
}  
if ($rule_0 = "21"){  
rewrite ^/(.*)$ /index.php?/$1 last;  
}  

QA

  1. 周期限制不起效?! 请注意您的 /config 目录下的文件是否可读,php有时候会出现 permission denied 问题

  2. 账号绑定出错:
    https://github.com/donwa/oneindex/issues/511

  3. 程序安装失败错误:

oneindex's People

Contributors

quericy avatar somebottle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

oneindex's Issues

正常运行但会显示php错误

Warning: file_put_contents(/var/www/lib/requestlog.php): failed to open stream: Permission denied in /var/www/lib/onedrive.php on line 126
Warning: file_put_contents(/var/www/lib/requestcode.txt): failed to open stream: Permission denied in /var/www/lib/onedrive.php on line 138
Warning: Cannot modify header information - headers already sent by (output started at /var/www/lib/onedrive.php:126) in /var/www/controller/IndexController.php on line 28
Warning: Cannot modify header information - headers already sent by (output started at /var/www/lib/onedrive.php:126) in /var/www/controller/IndexController.php on line 29
Warning: Cannot modify header information - headers already sent by (output started at /var/www/lib/onedrive.php:126) in /var/www/controller/IndexController.php on line 30

搭建完成后首页提示错误

Warning: Illegal string offset 'index.html' in /www/wwwroot/sola.fun/controller/IndexController.php on line 113

Warning: Illegal string offset 'index.html' in /www/wwwroot/sola.fun/controller/IndexController.php on line 114

Fatal error: Cannot use string offset as an array in /www/wwwroot/sola.fun/controller/IndexController.php on line 114

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.