Skip to content
/ kanji Public

Simple temporary file hosting solution, powered by Django

License

Notifications You must be signed in to change notification settings

izq/kanji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kanji

Simple temporary file hosting solution, powered by Django.

Page design based on Uguu.

Installation

Please install Python 3.x and pip if you don't have them already.

First install the dependencies:

sudo pip3 install django django-qr-code python-magic

Start the server:

git clone https://github.com/izq/kanji.git
unzip kanji.git
cd kanji
python3 manage.py migrate --run-syncdb
python3 manage.py runserver

And setup a cron job (crontab -e) to delete uploaded files older than 24 hours :

*/5 * * * * root /home/izq/kanji/check.sh

Configuration

Most of the variables you may want to customize are located in /kanji/settings.py

BANNED_MIMETYPES = ["text/html", "application/x-msdownload", "application/x-ms-installer", "application/x-elf"]

MAX_SIZE = 104857600

WEBSITE_ROOT = "http://127.0.0.1:8000"

MAX_SIZE is the maximum file size, i.e 100MB.

WEBSITE_ROOT is the domain name used to generate the URL that is returned to the user.

Screenshot

Screenshot

Releases

No releases published

Packages

No packages published

Languages