You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jolheiser 41d68ba36d
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
Add config file, favicon, and fix domain
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 year ago
cmd/cabinet Add config file, favicon, and fix domain 1 year ago
internal Add config file, favicon, and fix domain 1 year ago
.gitignore Refactor, add lib, add some tests 1 year ago
.woodpecker.yml Remove release tag for now 1 year ago
LICENSE Initial Commit 1 year ago
README.md Initial Commit 1 year ago
cabinet.go Refactor, add lib, add some tests 1 year ago
go.mod Refactor, add lib, add some tests 1 year ago
go.sum Refactor, add lib, add some tests 1 year ago

README.md

cabinet

Store your files and links in your cabinet.

Inspired by chanbakjsd/filehost.

How to upload files?

HTTP POST files:

curl -F'file=@yourfile.png' https://example.com/f

If the instance is token protected:

curl -F'file=@yourfile.png' -F'token=yourtoken' https://example.com/f

You can access uploaded files at the returned URL.

How to shorten URLs?

HTTP POST your URL:

curl -d'url=https://example.com' https://example.com/r

If the instance is token protected:

curl -d'url=https://example.com' -d'token=yourtoken' https://example.com/r

You can access redirects at the returned URL.

How long are files and shortened URLs kept?

Until the configured limit of the server is reached! Older and larger files get killed when that's reached.

URLs are treated as files with the URL as its content.

License

MIT