aurelilia / zerofile

Simple file host

Home Page:https://file.angm.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zerofile

A filehost focused on being simple to use and lightweight, using no libraries or frameworks (except PeerJS when using p2p file streaming). Uses Django/Python for backend.

Installation

This only depends on django and python-magic. To install them with pip, do:

pip3 install Django==3.1.7 python-magic

Additionally, you'll have to create two files in django's BASE_DIR:

  • key: Put your SECRET_KEY in here. If this is missing, a dev env will be assumed and a default key be used.
  • database: Put your django DATABASE settings in here (in JSON).

Lastly, run compile-sass.sh to compile SASS into CSS. This uses sassc, but you can also use any other compiler as long as you modify the script accordingly.

Analytics

By default, ZeroFile embeds the angm.xyz Shynet instance into every page for analytics. If you wish to remove it or change to a different analytics provider, change it in the bottom of the body of templates/base.html.

Deploying

See the Django Documentation on how to deploy.

About

Simple file host

https://file.angm.xyz

License:GNU General Public License v3.0


Languages

Language:Python 40.4%Language:JavaScript 23.5%Language:HTML 22.9%Language:Sass 12.6%Language:Shell 0.7%