Go to file
jolheiser 518f5564be
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline failed Details
Fix plugin config
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-01-02 15:29:58 -06:00
cmd/cabinet Add more tests and CI 2022-01-02 15:26:00 -06:00
internal Add more tests and CI 2022-01-02 15:26:00 -06:00
.gitignore Refactor, add lib, add some tests 2022-01-01 23:48:20 -06:00
.woodpecker.yml Fix plugin config 2022-01-02 15:29:58 -06:00
LICENSE Initial Commit 2022-01-01 00:04:50 -06:00
README.md Initial Commit 2022-01-01 00:04:50 -06:00
cabinet.go Refactor, add lib, add some tests 2022-01-01 23:48:20 -06:00
go.mod Refactor, add lib, add some tests 2022-01-01 23:48:20 -06:00
go.sum Refactor, add lib, add some tests 2022-01-01 23:48:20 -06:00

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