1
0
forked from crony/UpFast

Compare commits

..

3 Commits

Author SHA1 Message Date
Raymaekers Luca
b376d91e21 extracted nginx conf into file 2023-04-04 18:52:14 +02:00
Raymaekers Luca
da70b22fdf added upfast.sh for quick install and upfast.service 2023-04-04 18:47:37 +02:00
Raymaekers Luca
7c593f2fc2 renamed venv to env 2023-04-04 18:46:26 +02:00
6 changed files with 32 additions and 18 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
__pycache__
upload
venv
env

View File

@ -29,6 +29,9 @@ source env/bin/activate
# Install all the requirements
pip install -r requirements.txt
# Load environment by default
echo "source /usr/local/upfast/venv/bin/activate" > "/usr/local/upfast/.profile"
# create the upload directory
mkdir upload
@ -96,7 +99,3 @@ server {
}
}
```
# Contributions
Thanks [TLasT](https://craftmenners.men) on his help with testing and documentation.

View File

@ -5,7 +5,8 @@ html {
body {
max-width: 900px;
margin: auto;
background: #81a1c1;
background: #303446;
color: #c6d0f5;
}
h1 {
@ -15,7 +16,7 @@ h1 {
hr {
margin: 40px;
color: #2e3440;
color: #626880;
}
img {
@ -33,9 +34,9 @@ video {
}
a {
color: #ebcb8b;
color: #f2d5cf;
text-decoration: none;
font-weight: bold;
font-style: bold;
padding: 5px;
}
@ -44,7 +45,7 @@ a:hover {
}
pre {
background: #2e3440;
background: #292c3c;
font-size: 1am;
padding: 10px;
max-width: 800;
@ -53,7 +54,6 @@ pre {
overflow-x: scroll;
border: none;
border-radius: 1rem;
color: #88c0d0;
}
.file {

View File

@ -1,7 +1,8 @@
body {
max-width: 900px;
margin: auto;
background: #81a1c1;
background: #303446;
color: #c6d0f5;
}
@ -11,9 +12,9 @@ h1 {
}
a {
color: #ebcb8b;
text-decoration: none;
font-weight: bold;
color: #f2d5cf;
text-decoration: none;
font-style: bold;
padding: 5px;
}
@ -22,9 +23,8 @@ a:hover {
}
code {
background: #88c0d0;
background: #414559;
border-radius: 10px;
font-size: 105%;
font-style: italic;
padding: 2px;
}

15
upfast-nginx Normal file
View File

@ -0,0 +1,15 @@
server {
listen 80;
listen [::]:80;
server_name upfast.example.com ;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
}
}

View File

@ -22,6 +22,6 @@ git clone https://git.craftmenners.men/upfast .
python3 -m venv env
. ./env/bin/activate
pip install -r requirements.txt
mkdir upload '
mkdir upload'
systemctl enable --now upfast.service