initial customizations
parent
0db6e4b895
commit
4c98169496
@ -1,3 +1,5 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
.py[cod]
|
.py[cod]
|
||||||
instance/
|
instance/
|
||||||
|
media/
|
||||||
|
database.db
|
||||||
|
@ -1,45 +1,42 @@
|
|||||||
<pre>
|
<pre>
|
||||||
THE NULL POINTER
|
0w0
|
||||||
================
|
--------------------- {% set fhost_url = url_for("fhost", _external=True).rstrip("/") %}
|
||||||
{% set fhost_url = url_for("fhost", _external=True).rstrip("/") %}
|
a selfhosted instance of 0x0
|
||||||
HTTP POST files here:
|
|
||||||
|
try out our new <a href="{{ fhost_url }}/web">web interface</a>!
|
||||||
|
|
||||||
|
POST API
|
||||||
|
---------------------
|
||||||
|
file upload:
|
||||||
curl -F'file=@yourfile.png' {{ fhost_url }}
|
curl -F'file=@yourfile.png' {{ fhost_url }}
|
||||||
You can also POST remote URLs:
|
file upload from remote url:
|
||||||
curl -F'url=http://example.com/image.jpg' {{ fhost_url }}
|
curl -F'url=http://example.com/image.jpg' {{ fhost_url }}
|
||||||
Or you can shorten URLs:
|
shorten url:
|
||||||
curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }}
|
curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }}
|
||||||
|
|
||||||
File URLs are valid for at least 30 days and up to a year (see below).
|
|
||||||
Shortened URLs do not expire.
|
|
||||||
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
|
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
|
||||||
Maximum file size: {{ max_size }}
|
max file size: {{ max_size }}
|
||||||
Not allowed: {{ config["FHOST_MIME_BLACKLIST"]|join(", ") }}
|
|
||||||
|
|
||||||
|
all file types are allowed, but you better not be naughty.
|
||||||
|
|
||||||
FILE RETENTION PERIOD
|
TERMS
|
||||||
---------------------
|
---------------------
|
||||||
|
do not use this for:
|
||||||
|
- piracy
|
||||||
|
- extremist material of any form
|
||||||
|
- pornography and gore
|
||||||
|
- malware or C&C client software
|
||||||
|
- cryptocurrencies and related information
|
||||||
|
- *large* backups, ie a hard disk image
|
||||||
|
- doxxing
|
||||||
|
- things that are otherwise illegal under US law
|
||||||
|
|
||||||
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
any uploads with any of these may be removed with no notice.
|
||||||
|
|
||||||
days
|
FILE AND URL RETENTION PERIOD
|
||||||
365 | \\
|
---------------------
|
||||||
| \\
|
retention = forever. thats right, they are forever. (until someone complains to me)
|
||||||
| \\
|
|
||||||
| \\
|
THANKS
|
||||||
| \\
|
---------------------
|
||||||
| \\
|
thanks to <a href="https://0x0.st">mia, for the original 0x0 site.</a>
|
||||||
| ..
|
|
||||||
| \\
|
|
||||||
197.5 | ----------..-------------------------------------------
|
|
||||||
| ..
|
|
||||||
| \\
|
|
||||||
| ..
|
|
||||||
| ...
|
|
||||||
| ..
|
|
||||||
| ...
|
|
||||||
| ....
|
|
||||||
| ......
|
|
||||||
30 | ....................
|
|
||||||
0{{ ((config["MAX_CONTENT_LENGTH"]/2)|filesizeformat(True)).split(" ")[0].rjust(27) }}{{ max_size.split(" ")[0].rjust(27) }}
|
|
||||||
{{ max_size.split(" ")[1].rjust(54) }}
|
|
||||||
</pre>
|
</pre>
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
<pre>
|
||||||
|
<form action="/" method="post" enctype="multipart/form-data">
|
||||||
|
<input type="file" id="file" name="file"><br>
|
||||||
|
<input type="submit" value="Upload" formtarget="_self">
|
||||||
|
</form>
|
||||||
|
</pre>
|
Loading…
Reference in new issue