1
0
forked from crony/UpFast
fork of crony's UpFast, for contribution purposes.
Go to file
2023-04-05 13:35:31 +02:00
static/css Fix not setting max size incorctly 2023-03-26 15:45:19 +02:00
templates Corrections. 2023-03-26 12:27:02 +02:00
.dockerignore Added dockerbuild and .dockerignore 2023-03-25 21:12:55 +01:00
.gitignore renamed venv to env 2023-04-04 18:46:26 +02:00
Dockerfile Reverse. 2023-03-26 11:41:56 +02:00
install.sh fixed typo 2023-04-05 13:05:34 +02:00
LICENSE first commit 2023-03-23 21:00:39 +01:00
main.py Fix text return for curl when deleting file 2023-03-26 10:14:35 +02:00
README.md added updating to readme 2023-04-05 13:35:31 +02:00
requirements.txt Update requirements.txt 2023-03-25 18:35:12 +01:00
upfast-nginx extracted nginx conf into file 2023-04-04 18:52:14 +02:00
upfast.service added install section to service 2023-04-05 12:54:52 +02:00

UpFast

Simple tool for uploading and sharing files that you can self-host.

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.

We will also be setting up an specific user to run the app as safe as possible with a systemd service file for startup

Installing

./install.sh

Running

systemctl start upfast.service

Start on boot

systemctl enable upfast.service

Updating

To update, you only need to pull the changes

su upfast -c 'cd && git pull --no-rebase'

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 an upload directory, you can replace ./upload with a different path to save uploaded stuff.

Nginx Proxy setup

This is an example nginx proxy config for http

cp ./upfast-nginx /etc/nginx/sites-available/upfast
ln -sf /etc/nginx/sites-available/upfast /etc/nginx/sites-enabled/

Load config

systemctl reload nginx