Code Monkey home page Code Monkey logo

oneindex-1's Introduction

OneIndex

Oneindex Bottle Edition.

(๑•̀ㅂ•́)و✧ Original Program by Donwa.
https://github.com/donwa/oneindex

缘由

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

修改内容

  • 密码md5密文保存

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

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

  • 防止request失败导致的空文件目录.((づ ̄3 ̄)づ拒绝首页空白)

  • 增加简单的状态码&出错日志(在/lib目录下生成).(requestcode.txt & requestlog.php)

  • nexmoe主题增加了一次性缩略图的加载限制,最多预览五十张(防止请求过多被限制)

  • 增加缓存刷新结果,如果刷新失败,后台会显示重建缓存失败,CLI模式在one.php执行刷新时如果失败会返回Failed
    Example

  • 文件缓存过期引用时自动刷新

店长推荐(误

选项推荐:

  • token:两小时
  • cache:30分钟
  • base.php中cache_refresh_time:3600(秒)
  • 缓存类型:filecache
  • 缓存过期时间(秒):86400
  • 自动调整周期前允许重试的次数: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;  
}  

周期限制不起效?!

  • 请注意您的/config目录下的文件是否可读,php有时候会出现permission denied问题

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

程序安装失败错误:

oneindex-1's People

Contributors

somebottle avatar

Watchers

James Cloos avatar

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.