GithubHelp home page GithubHelp logo

goindex's Introduction

GoIndex

1.0.6 修复版

根据hang333大佬shyim大佬的代码,来修复特殊符号exception和1000文件以上不显示的问题

GoIndex

基于 Cloudflare WorkersGoogle Drive 的功能,你可以部署你的代码在Cloudflare Workers,实现以目录形式展示google drive中的文件。

index.js 包含 Workers 所需的代码.

Demo

material:
https://index.gd.workers.dev/
classic:
https://indexc.gd.workers.dev/

安装部署方案1

1、在本地安装 rclone
2、按照 https://rclone.org/drive/ 流程进行授权。
3、执行 rclone config file 查看 rclone.conf 路径。找到root_folder_id和refresh_token记录下来。
4、下载 https://github.com/donwa/goindex 中的 index.js 并填入 root 和 refresh_token
5、复制代码 到 CloudFlare 部署。

安装部署方案2

作者不会记录refresh_token,但为避免纠纷,建议有条件的同学使用方案1进行部署
1、访问https://install.gd.workers.dev/
2、授权认证后,生成部署代码。
3、复制代码 到 CloudFlare 部署。

文件夹密码:

在google drive 文件中放置 .password 文件来设置密码。
密码文件只能保护该文件不被列举,不能保护该文件夹的子文件夹不被列举。
也不保护文件夹下文件不被下载。

程序文件中 root_pass 只为根目录密码,优先于 .password 文件

更新日志

1.0.6
添加 classic 模板

1.0.5
添加文件展示页

1.0.4
修复 注入问题。

1.0.3
修复 .password 绕过下载问题。

1.0.2
优化前端逻辑
添加文件预览功能(临时)
添加前端文件缓存功能

1.0.1
添加 README.md 、 HEAD.md 支持

1.0.0
前后端分离,确定基本架构
添加.password 支持

goindex's People

Contributors

donwa avatar kuk111111 avatar myluoluo 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.