mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-16 20:20:58 +01:00
2a42cbb07a10eda3d1dcbca3cc6f15a330b68940
up
Simple standalone file upload server with api and cli
TODO
- decouple db and http code in Runserver()
- store ts
- implement goroutine to expire after 1d, 10m etc
- use bolt db to retrieve list of items to expire
- return a meaningful message if a file has expired, not just a 404, that is: do remove the file when it expires but not the associated db entry.
- also serve a html upload page
- add auth options (access key, users, roles, oauth2)
- add metrics
- add upctl command to remove a file
- upd: add short uuid to files, in case multiple files with the same name are being uploaded
- use global map of api endpoints like /file/get/ etc
- use separate group for /file/
Languages
Go
89.7%
Makefile
4.2%
HTML
3%
Shell
1.9%
HCL
0.6%
Other
0.6%