Simple file upload and sharing tool
Go to file
2023-03-26 09:33:53 +02:00
static/css first commit 2023-03-23 21:00:39 +01:00
templates Fix broken links. 2023-03-25 18:31:11 +01:00
.dockerignore Added dockerbuild and .dockerignore 2023-03-25 21:12:55 +01:00
.gitignore Update .gitignore 2023-03-25 19:29:50 +01:00
Dockerfile Add proxy headers 2023-03-26 08:52:35 +02:00
gunicorn_start Fix socket name 2023-03-26 09:33:53 +02:00
LICENSE first commit 2023-03-23 21:00:39 +01:00
main.py Fix error when using python 3.9 2023-03-26 08:53:01 +02:00
README.md Update command 2023-03-26 08:53:16 +02:00
requirements.txt Update requirements.txt 2023-03-25 18:35:12 +01:00

UpFast

simple tool to for uploading and sharing files that is selfhostable.

How to host

Regular system

To run on a regular system I recommend to use a virtual environment to install the dependencies and run the project from there.

# Create the virtual environment
python -m venv venv

# Activate the virtual environment
source venv/bin/activate

# Install all the requirements
pip install -r requirements.txt

# Run the project
uvicorn main:app --host 127.0.0.1 --port 8000 --proxy-headers

Docker

In the repo there is an included dockerfile to generate an image from the latest version of everything, to generate an image just run docker build . -t upfast (You need root privileges or to be in the docker group).

To run the docker container check the container id with docker images command.

sample docker run command

sudo docker run -p 8000:8000 -v ./upload:/usr/src/app/upload CONTAINER_ID

The sample command will need a upload directory to where you run it from so you can replace ./upload with a different path to save uploaded stuff.