#command #path #utilities #self-hosted #cloud #line #media

app ocloud

Command line utilities for a self-hosted cloud

1 unstable release

new 0.1.0 Feb 1, 2025

#1418 in Web programming

MIT license

54KB
1.5K SLoC

Environment

Rename example.env -> .env, then fill out the variables accordingly.

API

/media/[path]

Note - path is a directory if it ends with '/'.
All directories are created upon access.

GET (file/dir) - Retrieves the file, or lists the directory contents
DELETE (file) - Deletes the file
POST (dir) - Uploads a file to the directory. (sent via multipart)\

TODO

  • for each [file] uploaded, store a [file].meta that contains all the names the media is aliased under. can be used to restore the database and download everything

Dependencies

~33–50MB
~900K SLoC