← 返回到所有服务
GitHub 仓库信息
获取时间 · 2026年6月5日 ★ 2,751 最新版本: v2.2.4 最后更新: 2026年6月4日
README
# Gokapi [](https://gokapi.readthedocs.io/en/stable/?badge=stable) [](https://goreportcard.com/report/github.com/forceu/gokapi) [](https://github.com/jpoles1/gopherbadger) [](https://hub.docker.com/r/f0rc3/gokapi/) **Gokapi** is a modern, self-hosted alternative to Firefox Send that puts you in control of your file sharing. Built with Go, it combines simplicity with powerful features like automatic file expiration, end-to-end encryption, and flexible cloud storage support. ### Available for: - **Bare Metal** (Linux/macOS/Windows) - **Docker**: [View on Docker Hub](https://hub.docker.com/r/f0rc3/gokapi) ## Features - **Expiring file shares:** Automatically removed after a set number of downloads or days - **User management with roles:** Fine-grained permission control, only registered users can upload - **File requests:** A shareable URL lets external parties upload files, visible only to the URL’s creator - **File deduplication:** Identical files use no extra space - **Cloud storage support:** AWS S3 (or S3 compatible like Backblaze B2), optional - **Built-in encryption:** Including end-to-end encrypted uploads - **OpenID Connect support:** Integrate with identity providers like Authelia or Keycloak - **REST API:** For automation and integration into other systems - **Customizable UI:** Adjust look and feel with custom CSS and JavaScript --- ## Getting Started You can deploy Gokapi in seconds using Docker or directly on your system. [Installation Guide](https://gokapi.readthedocs.io/en/latest/setup.html) [Usage Instructions](https://gokapi.readthedocs.io/en/latest/usage.html) **Want to give it a try?** Start Gokapi instantly with Docker: ```bash docker run --rm \ --name gokapi \ -v gokapi-data:/app/data \ -v gokapi-config:/app/config \ -p 127.0.0.1:53842:53842 \ -e TZ=UTC \ docker.io/f0rc3/gokapi:latest ``` Then visit ``http://localhost:53842/setup`` and follow the setup wizard. ## Screenshots **Main Menu** <a href="https://github.com/user-attachments/assets/d805a88b-dc74-4c39-bed6-ec31b9c3e17f" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/d805a88b-dc74-4c39-bed6-ec31b9c3e17f" /> </a> **File Requests** <a href="https://github.com/user-attachments/assets/a6565cf8-bd2d-4027-a150-673aa93d4502" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/a6565cf8-bd2d-4027-a150-673aa93d4502" /> </a> **User Overview** <a href="https://github.com/user-attachments/assets/cbc738e4-75ae-4647-8178-da735f74a86f" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/cbc738e4-75ae-4647-8178-da735f74a86f" /> </a> **API Overview** <a href="https://github.com/user-attachments/assets/c480af8e-772c-4f8b-9f0e-28c8aceb9b49" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/c480af8e-772c-4f8b-9f0e-28c8aceb9b49" /> </a> **Status Overview** <a href="https://github.com/user-attachments/assets/70d5ab07-e60f-48d5-8739-fa038129e5ae" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/70d5ab07-e60f-48d5-8739-fa038129e5ae" /> </a> **Download Link** <a href="https://github.com/user-attachments/assets/fd9c032b-733d-4657-9f42-f751b2634e02" target="_blank"> <img width="300" alt="image" src="https://github.com/user-attachments/assets/fd9c032b-733d-4657-9f42-f751b2634e02" /> </a> --- ## System Requirements ### Minimum - **CPU**: 1 core - **RAM**: 256 MB - **Storage**: 100 MB + file storage - **OS**: Linux, macOS, Windows ### Recommended - **CPU**: 2+ cores - **RAM**: 512 MB+ - **Storage**: SSD strongly recommended ## Development ### Building from Source ```bash # Clone the repository git clone https://github.com/Forceu/gokapi.git cd gokapi # Build the binary make build # Run tests make test # Build Docker image docker build -t gokapi:local . ``` ## License This project is licensed under the AGPL3 - see the [LICENSE.md](LICENSE.md) file for details ## Contributors <a href="https://github.com/forceu/gokapi/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=forceu/gokapi" /> </a> ## Donations As with all Free software, the power is less in the finances and more in the collective efforts. I really appreciate every pull request and bug report offered up by our users! If however, you're not one for coding/design/documentation, and would like to contribute financially, you can do so with the link below. Every help is very much appreciated! [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donate@bulling.mobi&lc=US&item_name=BarcodeBuddy&no_note=0&cn=¤cy_code=EUR&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted) [](https://liberapay.com/MBulling/donate) Powered by [Jetbrains](https://jb.gg/OpenSourceSupport)
Gokapi 是一个轻量级的自托管文件分享服务器,灵感来源于 Firefox Send。管理员可以上传文件并生成一次性的下载链接,链接会在达到设定的下载次数或者天数后自动失效,确保临时分享更加安全可控。
主要功能
- 失效策略灵活:按下载次数或有效期自动删除文件,支持精细化控制共享窗口
- 密码保护:为下载链接设置密码,防止未授权访问
- 自定义存储:支持本地文件系统、S3 兼容对象存储等多种后端
- 多格式链接:自动生成可直接分享的下载链接和二维码
- 通知提醒:可配置在文件过期或下载完成后发送通知邮件
- 轻量部署:占用资源低,适合部署在低配置主机上
部署建议
- 推荐通过 Docker Compose 快速部署,并挂载本地卷保存配置与文件数据
- 如使用对象存储,需要在环境变量中配置访问凭据和桶名称
- 建议在反向代理中启用 HTTPS,保障下载链接的安全性
- 配置管理员邮件和 SMTP 服务,以启用通知功能
- 定期清理日志与缓存,保持实例轻量稳定运行
适用场景
- 团队或组织内部临时共享敏感文件
- 与客户或合作伙伴交换一次性资料
- 需要可控失效时间的下载服务