/gone

gone is a server which indexes your OneDrive files

Primary LanguageGo

gone是受oneindex启发而开发的,基于golang的OneDrive索引工具。

Demo

  1. 使用命令cp example.conf prod.conf复制一份新的配置文件
  2. 准备一个域名example.com并启用HTTPS,将https://example.com/authcallback填入prod.conf里的RedirURL字段
  3. 访问https://apps.dev.microsoft.com/#/appList进行添加应用
  4. 应用程序ID填入prod.conf的ClientID字段
  5. 生成新密码,将值填入prod.conf的ClientSecret字段
  6. 添加平台,选择Web,将https://example.com/authcallback填入重定向 URL
  7. 保存修改
  8. 在prod.conf里的Password字段内填入一个密码,该步骤必须
  9. 使用命令go run *.go -c prod.conf -l :8080启动gone,反代8080端口https://example.com
  10. 打开浏览器访问https://example.com/?auth=密码,按照提示授权
  11. 完成

配置文件

配置选项:

  1. Header: string: 指定header.html的路径
  2. Footer: string: 指定footer.html的路径
  3. Ignore: string: 指定哪些文件被显示的文件名正则表达式
  4. Prefetch: string: 指定哪些文件可以被本地缓存的文件名正则表达式
  5. Favicon: string: 指定favicon的路径
  6. DisableReadme: bool: 不渲染readme
  7. CacheSize: int: 目录缓存大小
  8. CacheTTL: int: 目录缓存有效期
  9. PrefetchSize: int: 本地缓存大小,单位为MB