Git Product home page Git Product logo

andex's Introduction

Andex

 ______     __   __     _____     ______     __  __    
/\  __ \   /\ "-.\ \   /\  __-.  /\  ___\   /\_\_\_\   
\ \  __ \  \ \ \-.  \  \ \ \/\ \ \ \  __\   \/_/\_\/_  
 \ \_\ \_\  \ \_\\"\_\  \ \____-  \ \_____\   /\_\/\_\ 
  \/_/\/_/   \/_/ \/_/   \/____/   \/_____/   \/_/\/_/                                                       

Andex (Aliyun Index) 是一个将阿里网盘作为云盘分享的工具

配置文件

路径是运行目录下 ./config.json

{
  "refresh_token": "REFRESH_TOKEN",
  "root_path": "/publicDir",
  "port": "8080",
  "admin_password": "adminPassword",
  "site_name": "Andex云盘"
}
  • refresh_token 阿里云盘 refresh token,获取方法如下

    • (2021-06)
      • 打开 这个地址
      • 输入用户名和密码,点击登录
      • login.do 的返回结果中,去除 bizExt 内容
      • base64 解码,其中会有一个 refresh token 字段
  • root_path 云盘内文件夹的路径,如 /public/Andex, 该路径将会映射到 Andex 首页路径, 默认为 /, 即网盘根目录

  • port 服务运行端口

  • admin_password 管理员密码

  • site_name 网站名称

Feature

  • 根目录文件夹设置
  • 不直接暴露文件夹 id
  • 阿里云盘下载直链获取
  • 网盘 README.md 展示
  • 文件/文件夹下载加密(密码设置)

TODO

  • 提供后台管理/设置/初始化页面
    • README.md 编辑
  • 文件/文件夹下载次数统计
  • ip 防护/黑名单防护

Build

clone 代码之后直接 go build Andex.go 就可以了

构建得到的运行文件为 ./Andex./Andex.exe

运行效果

图片1

图片2

图片3

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.