A simple file server with abilities to resize thumbnails and capture screenshots from videos.
378
Hostex is a simple storage solution for web. It simply handles uploads and downloads of files.
Simply run a Hostex service with the following command.
docker run -d \
-p4001:4001 \
-v /local/storage/path:/var/hostex \
-e HOSTEX_UPLOAD_TOKEN=asecrettokenhere \
alisinabh/hostex
Please change /local/storage/path to a path on your system for the files to get stored. And choose a random string (You can probably just bang on your keyboard a few times) for HOSTEX_UPLOAD_TOKEN. This is later used when you try to upload files from your backend.
HOSTEX_UPLOAD_TOKEN: A string token for use as a Authorization Bearer token when uploading files.HOSTEX_STORAGE_PATH: The path which hostex will use to store its data. Defaults to /var/hostex.HOSTEX_URL_RAND_SIZE: Byte size of the url random generated in HOSTEX. Increasing it will give you more space. Defaults to 8(bytes).Just send a HTTP POST multipart request with your file and Authorization header. The Authorization header should be in the following format.
Request (multipart/form-data)
Headers
Authorization: Bearer HOSTEX_UPLOAD_TOKEN
Attributes
Response 200 (application/json)
Attributes (object)
Parameters
Request
Response 200 (FILE_MIME)
Content type
Image
Digest
Size
11.5 MB
Last updated
about 6 years ago
docker pull alisinabh/hostex