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__ __pycache__
upload upload
venv env

View File

@ -29,6 +29,9 @@ source env/bin/activate
# Install all the requirements # Install all the requirements
pip install -r requirements.txt 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 # create the upload directory
mkdir upload 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 { body {
max-width: 900px; max-width: 900px;
margin: auto; margin: auto;
background: #81a1c1; background: #303446;
color: #c6d0f5;
} }
h1 { h1 {
@ -15,7 +16,7 @@ h1 {
hr { hr {
margin: 40px; margin: 40px;
color: #2e3440; color: #626880;
} }
img { img {
@ -33,9 +34,9 @@ video {
} }
a { a {
color: #ebcb8b; color: #f2d5cf;
text-decoration: none; text-decoration: none;
font-weight: bold; font-style: bold;
padding: 5px; padding: 5px;
} }
@ -44,7 +45,7 @@ a:hover {
} }
pre { pre {
background: #2e3440; background: #292c3c;
font-size: 1am; font-size: 1am;
padding: 10px; padding: 10px;
max-width: 800; max-width: 800;
@ -53,7 +54,6 @@ pre {
overflow-x: scroll; overflow-x: scroll;
border: none; border: none;
border-radius: 1rem; border-radius: 1rem;
color: #88c0d0;
} }
.file { .file {

View File

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