45 lines
1.6 KiB
Markdown
45 lines
1.6 KiB
Markdown
# minibin
|
|
|
|
> im using this project to learn go, it may not be the best
|
|
|
|
minibin is a simple file and paste hosting service written in Go
|
|
|
|
i will try my best to make it easy to customize and deploy, but this is a personal project and made using my own preferences, so you may need to change the tos/privacy policy/faq etc to fit your needs
|
|
|
|
goals:
|
|
|
|
- fast
|
|
- simple api/usage
|
|
- secure (as much as possible)
|
|
- moderable (reports, mime type filtering, hash ban, etc)
|
|
- complete no javascript support
|
|
|
|
# roadmap/todo
|
|
|
|
- [x] upload endpoint
|
|
- [x] content endpoint
|
|
- [ ] update last accessed at
|
|
- use a memory cache and batch commit to database to keep performance
|
|
- [x] add cache control headers
|
|
|
|
- [x] delete content endpoints
|
|
- [ ] paste page
|
|
- [ ] return a page for nojs clients, such as on delete or upload
|
|
- [ ] max total storage usage
|
|
- [ ] normalize mime types (like html)
|
|
- [ ] filter mime types config
|
|
- [ ] admin panel
|
|
- [ ] prometheus metrics
|
|
- [x] [switch mime type detection library](https://git.whoswhip.dev/whoswhip/minibin/src/commit/47518993577f94d7cf9c0743042d2ac133055924/handlers.go#L273-L276)
|
|
- [ ] ratelimits
|
|
- [ ] simplify rendering & serving pages (too much duplicate code rn)
|
|
|
|
## misc goals
|
|
|
|
- [x] link to this git repo on home page
|
|
- [ ] maybe keep nojs and js on the same page?
|
|
- just use javascript to enhance the experience, like progress, drag and drop
|
|
- [ ] shareX config download handlers (automatically create based off of config)
|
|
- [ ] add a config option to put the endpoint on another path, such as `/f/{id}`
|
|
- allowing more specific caching options through reverse proxies like cloudflare
|