sword

OneIndex:OneDrive网盘的目录列表程序,可直接下载/查看
简介OneIndex是一个可以将OneDrive网盘的目录索引出来的程序,可以供多人查看/下载,也就是变成了公共的...
扫描右侧二维码阅读全文
30
2018/04

OneIndex:OneDrive网盘的目录列表程序,可直接下载/查看

简介

OneIndex是一个可以将OneDrive网盘的目录索引出来的程序,可以供多人查看/下载,也就是变成了公共的网盘。不用服务器空间,不走服务器流量,直接列onedrive目录,文件直链下载。GitHub地址:https://github.com/donwa/oneindex

demo

https://xn.tn
请输入图片描述

特点

  • 响应式,支持小屏设备。
  • 图片在线预览。
  • 视频在线播放。
  • 代码在线查看(js、css、html、sh、php、java、md等)。
  • README.md支持,解析各目录下(onedirive目录下) README.md文件,在页面尾部展示。
  • 音频在线播放。
  • HEAD.md支持,在页面头部展示。
  • .password文件夹加密。

需求

  • PHP空间,PHP 5.6+ 打开curl支持。
  • onedrive business账号 (企业版或教育版)。
  • oneindex程序:Github下载

安装:

2019年5月19日更新:修复桥接链接失效

作者提供的桥接链接:https://oneindex.github.io/https://jn.tn/ 都相继失效了,导致页面空白,其实我们可以用自己的桥接链接,作者在源码的oneindex/controller/AdminController.php文件182行中有一段判断

请输入图片描述

我们可以把源码中的 https://oneindex.github.io/ 改为自己即将要搭建的onedrive网盘域名地址,比如杂货屋的https://file.sword.studio/
注意:必须启用强制https才可以作为桥接地址,所以搭建前得配置好ssl(其实宝塔搭建的,很简单,直接一键申请好ssl后再搭建就好了)

1、复制oneindex到服务器,设置config/、config/base.php 、 cache/ 可读写
2、浏览器访问
请输入图片描述

获取应用ID和机密、登录账号绑定
请输入图片描述
复制机密填完以后,点击返回
请输入图片描述
获取ID,并填写,填完以后点击下一步,第三行不用改
请输入图片描述
绑定账号
请输入图片描述
3、可以使用

Last modification:May 19th, 2019 at 09:36 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

11 comments

  1. 爱睡懒觉的IT男   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 72.0.3626.121 Google Chrome 72.0.3626.121 )

    我是虚拟机加拨号网络,然后网络是公司的,公司在泰国,泰国网络没有封80、8080、443端口,拨号绑花生壳,花生壳绑阿里云,所以我自己也拿来建博客玩儿。有时候朋友需要一个服务器,我立马就能开一个。方便的很,省了很多钱,哈哈

    1. sword   ( Windows 7 x64 Edition Windows 7 x64 Edition / Google Chrome 73.0.3683.86 Google Chrome 73.0.3683.86 )
      @爱睡懒觉的IT男

      厉害厉害

  2. 刨冰加热   ( Windows 10 x64 Edition Windows 10 x64 Edition / Microsoft Edge 17.17133 Microsoft Edge 17.17133 )

    蜜汁尴尬。虚拟机的版本是5.5,看来真的要换一台 了

    1. 呵呵哒   ( Windows 7 x64 Edition Windows 7 x64 Edition / Firefox 59.0 Firefox 59.0 )
      @刨冰加热

      上VPS吧,虚拟机没啥好玩的

      1. 刨冰加热   ( Android 7.1.1 Android 7.1.1 / WebView 4.0 WebView 4.0 )
        @呵呵哒

        你发给我的那个是vps吗?

        1. 呵呵哒   ( Windows 7 x64 Edition Windows 7 x64 Edition / Firefox 59.0 Firefox 59.0 )
          @刨冰加热

          哪个?我博客右边广告贴的两个搬瓦工和cloudcone都是啊

  3. 刨冰加热   ( Windows 10 x64 Edition Windows 10 x64 Edition / Microsoft Edge 17.17133 Microsoft Edge 17.17133 )

    可以上传吗?如果可以的话那真的就很6 了啊

    1. 呵呵哒   ( Windows 7 x64 Edition Windows 7 x64 Edition / Firefox 59.0 Firefox 59.0 )
      @刨冰加热

      可以上传,点进去github仔细看看

  4. 张尧博客   ( Windows 7 x64 Edition Windows 7 x64 Edition / Google Chrome 65.0.3325.181 Google Chrome 65.0.3325.181 )

    哈哈哈哈,上了E3的车,我也发个test
    files.zhangyao.org

    1. 呵呵哒   ( Windows 7 x64 Edition Windows 7 x64 Edition / Firefox 59.0 Firefox 59.0 )
      @张尧博客

      怎么上E3,带我上车啊大佬

      1. 张尧博客   ( Windows 7 x64 Edition Windows 7 x64 Edition / Google Chrome 65.0.3325.181 Google Chrome 65.0.3325.181 )
        @呵呵哒

        坛子里收的= =