53 lines
1.7 KiB
Cheetah
53 lines
1.7 KiB
Cheetah
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Cabinet</title>
|
|
|
|
<link rel="stylesheet" href="{{.}}/css/sakura.css"/>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Simple File Host</h1>
|
|
<p>A simple website that just hosts your files and redirects.</p>
|
|
|
|
<h2>How to upload files?</h2>
|
|
<p>HTTP POST files:</p>
|
|
<pre>curl -F'file=@yourfile.png' {{.}}/f</pre>
|
|
<p>If this instance is token protected:</p>
|
|
<pre>curl -F'file=@yourfile.png' -F'token=yourtoken' {{.}}/f</pre>
|
|
<p>You can access uploaded files at the returned URL.</p>
|
|
|
|
<h2>How to shorten URLs?</h2>
|
|
<p>HTTP POST your URL:</p>
|
|
<pre>curl -d'url=https://example.com' {{.}}/r</pre>
|
|
<p>If this instance is token protected:</p>
|
|
<pre>curl -d'url=https://example.com' -d'token=yourtoken' {{.}}/r</pre>
|
|
<p>You can access redirects at the returned URL.</p>
|
|
|
|
<h2>How long are files and shortened URLs kept?</h2>
|
|
<p>Until the configured limit of the server is reached! Older and larger files get killed when that's reached.</p>
|
|
<p>URLs are treated as files with the URL as its content.</p>
|
|
|
|
<h2>What cannot be uploaded?</h2>
|
|
<p>Here's a non-exhaustive list.</p>
|
|
<ul>
|
|
<li>Piracy</li>
|
|
<li>Pornography</li>
|
|
<li>Extremist material of any kind</li>
|
|
<li>Malware / botnet C&C</li>
|
|
<li>Cryptocurrency-related things</li>
|
|
<li>Backups</li>
|
|
<li>Anything illegal</li>
|
|
</ul>
|
|
|
|
<h2>Help out</h2>
|
|
<p>
|
|
If you run a server and like this site, clone it!<br/>
|
|
<a href="https://git.jojodev.com/jolheiser/cabinet">https://git.jojodev.com/jolheiser/cabinet</a>
|
|
</p>
|
|
|
|
<h2>Credits</h2>
|
|
<p>Inspired by <a href="https://github.com/chanbakjsd/filehost">https://github.com/chanbakjsd/filehost</a>. CSS modifed from <a href="https://github.com/oxalorg/sakura">https://github.com/oxalorg/sakura</a>.</p>
|
|
</body>
|
|
</html> |