👑 The light and fast file server
Shio can be installed from source, or from docker. You will need nim installed on your system to build it
git clone https://github.com/arashi-software/shio && cd shio
nimble install
Shio is configured in a json file. The json file is found in the shio directory named config.json
{
"use_key": true, // Wether to use an authentication key to upload a file. boolean
"keys": ["hello"] // Valid keys, can be left blank if use_key is false. list of strings
}
You can run shio by simply running the executable
shio
Shio will be run on port 5000
Files can be uploaded through curl or any other program that can create http requests.
- You must make a post request with a file
- You must provide the key that you have configured (if use_key is true in your config) as the key header
# curl
curl -X POST -F 'file=@<File-path-here>' -H 'key: <Your-configured-key-here>' <shio-url>