"Simple" webserver which handles file uploads
- Supports HTTP Basic Auth
- Random file name generator
- Can specify port, save location, and max file size
- bcrypt for authentication secret
- Written in Go? (I guess)
$ ./uploader -u <username> -s <secret>
$ ./uploader -w <domain> -d <path to webroot>
$ curl -u username:secret -F "[email protected]" http://127.0.0.1:8080/upload
Usage of uploader:
-a Disable authentication
-d string
Location to save files in
-f Save as original filename
-m int
The max file size in MB (default 10)
-p string
The port to bind to (default "8080")
-s string
Set a new auth secret
-u string
Set a new auth username
-w string
Public-facing URL for server
- Multi-user support
- How should I implement this without adding a whole bunch of code in order to deal with user management
- Auto-deletion
- Dedicated web interface with auth
- Add runit service