Skip to content
/ go-drive Public

A simple cloud drive mapping web app supports local, FTP/SFTP, S3, OneDrive, WebDAV, Google Drive.

License

Notifications You must be signed in to change notification settings

devld/go-drive

Repository files navigation

go-drive

English version

Demo: https://demo.go-drive.top

Doc: https://go-drive.top

功能

  • 文件管理,拖拽/粘贴上传,拖拽管理文件
  • 文件打包下载
  • 基于用户/组的权限控制
  • 图片浏览(PhotoSwipe)
  • 音乐播放(APlayer)
  • 文本编辑(CodeMirror)
  • 代码编辑(Monaco Editor)
  • 展示缩略图
  • 路径挂载
  • Drive 管理界面
  • 文件搜索
  • 通过 WebDAV 访问
  • 定时任务(gocron)

目前支持的 Drives

  • 本地文件
  • FTP
  • SFTP
  • WebDAV 协议
  • S3 兼容的云存储
  • OneDrive
  • Google Drive
  • Dropbox(JavaScript)
  • 七牛云(JavaScript)

如何使用

Docker

mkdir go-drive-data
docker run -d --name go-drive -p 8089:8089 -v `pwd`/go-drive-data:/app/data devld/go-drive

其中 go-drive-data 是数据目录,为了保证数据在应用升级后保留,最好将其映射至容器外。

直接运行

Release 页面下载对应平台的压缩包,解压后运行

  • Linux
./go-drive
  • Windows

直接运行 go-drive.exe 即可

默认用户为 admin,密码 123456

Features

  • files management, drag-and-drop/paste upload, drag-and-drop file management
  • Zip package download
  • User/group-based permission control
  • Image gallery(PhotoSwipe)
  • Music player(APlayer)
  • Text Editor(CodeMirror)
  • Code Editor(Monaco Editor)
  • Thumbnails
  • Path mounting
  • Drive management
  • Files searching
  • Access via WebDAV
  • Scheduled Jobs(gocron)

Currently supported drives

  • Local
  • FTP
  • SFTP
  • WebDAV
  • S3
  • OneDrive
  • Google Drive
  • Dropbox(JavaScript)
  • Qiniu(JavaScript)

How to use

Docker

mkdir go-drive-data
docker run -d --name go-drive -p 8089:8089 -v `pwd`/go-drive-data:/app/data devld/go-drive

go-drive-data is the data directory. To ensure that the data is retained after the application is upgraded, it is best to map it outside the container.

Release

Download binary file from the Release page, decompress and run

  • Linux
./go-drive
  • Windows

Just run go-drive.exe

Default user is admin, its password is 123456