Simple File Container
A basic file uploader and host.
Each uploaded file is stored in the "container", which is just a fancy way of saying a folder.
curl -d "FILE OR @DATA" -H "Token: YOUR_TOKEN" -X POST http://"YOUR IP/DOMAIN":1024
TODO
- Add support for ratelimiting API requests.
- Add Pushover support.
Quick setup
- Clone this repository to any folder on your computer.
- Run
chmod +x firstrun.sh && ./firstrun.sh - Edit config.json using this wiki as a guide.
- Edit the template cURL command on
www/index.htmlto reflect your instance settings. - Launch both of the Python files with sudo privileges. The page can be accessed at the servers IP on the specified web port. If your SSL key requires a password, you will be prompted to input it when you start each program.
Precompiled Linux binaries available from the dist directory.
Supported mimetypes out of the box
- text/plain
- image/png
- image/jpeg
- image/gif
- audio/webm
How do I disable SSL?
If for some reason, you'd like to disable SSL support, follow these instructions:
- Comment out line 23 in
sfc_www.py. - Comment out line 156 in
sfc_api.py. - Change
WWW_PORTfrom 443 to 80 inconfig.json.
I'm getting "Connection Refused" errors by my browser
Make sure your SSL keys are configured properly, and that you're visiting the correct site, which should be https://127.0.0.1:443, replacing 127.0.0.1 with the IP of your server.
Can I add new features?
Sure! Just make a pull request and describe what you're adding and I will take a look.
