Compare commits

...

16 Commits
main ... mine

Author SHA1 Message Date
Raymaekers Luca
a4d9291ee3 use storage, with max size for upload dir 2023-04-11 12:27:09 +02:00
Raymaekers Luca
129101ac2e use arguments or variables 2023-04-11 12:25:32 +02:00
root
c3f133b211 Merge branch 'installation-fix' into mine 2023-04-05 14:16:17 +02:00
root
4d3cac8851 added error detection 2023-04-05 14:15:54 +02:00
root
574b7ce5f1 use id command instead of variable 2023-04-05 14:10:59 +02:00
Raymaekers Luca
3873729ae7 Merge branch 'readme' into mine 2023-04-05 13:36:00 +02:00
Raymaekers Luca
4342fa4a56 added updating to readme 2023-04-05 13:35:31 +02:00
Raymaekers Luca
aa1dff7015 Merge branch 'installation' into mine 2023-04-05 13:15:16 +02:00
Raymaekers Luca
69f19a1888 Merge branch 'installation' into mine 2023-04-05 13:01:12 +02:00
Raymaekers Luca
a5df50f43c Merge branch 'installation' into mine 2023-04-04 18:53:40 +02:00
Raymaekers Luca
9f8afe5054 use italic font in <code> 2023-04-04 18:01:56 +02:00
Raymaekers Luca
edc99c3481 changed colors 2023-04-04 17:50:35 +02:00
Raymaekers Luca
8fdc68b441 fixed bold font 2023-04-04 16:24:53 +02:00
dcda0f372a Merge pull request 'fixed systemd commands markup' (#2) from TlasT/UpFast:main into main
Reviewed-on: #2
Fix markup.
2023-03-26 15:49:48 +00:00
09d2c4f863 Add contributor. 2023-03-26 17:39:48 +02:00
9abd361c7f Merge pull request 'readme' (#1) from TlasT/UpFast:readme into main
Reviewed-on: #1
Changes are all good don't worry. Nothing really ambitious there.
2023-03-26 15:17:21 +00:00
4 changed files with 46 additions and 22 deletions

View File

@ -24,6 +24,13 @@ systemctl start upfast.service
```bash ```bash
systemctl enable upfast.service systemctl enable upfast.service
``` ```
#### Updating
To update, you only need to pull the changes
```bash
su upfast -c 'cd && git pull --no-rebase'
```
### Docker ### 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). 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).
@ -49,3 +56,7 @@ ln -sf /etc/nginx/sites-available/upfast /etc/nginx/sites-enabled/
```bash ```bash
systemctl reload nginx systemctl reload nginx
``` ```
# Contributions
Thanks [TLasT](https://craftmenners.men) on his help with testing and documentation.

View File

@ -1,26 +1,39 @@
#!/bin/sh #!/bin/sh
# quick install (and run) script for upfast using systemd # quick install (and run) script for upfast using systemd
if [ $EUID -ne 0] if [ "$(id -u)" -ne 0 ]
then then
echo "Please run as root" echo "Please run as root"
exit 1 exit 1
fi fi
SIZE="5G"
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast UFDIR=${1:=/srv/upfast}
mkdir -p /usr/local/upfast # dodge copying of skeletons USER=${1:=upfast}
useradd --shell /bin/sh --system --home-dir $UFDIR $UFUSER ||
exit 1
mkdir -p "$UFDIR" || # dodge copying of skeletons
exit 1
chown upfast:upfast /usr/local/upfast chown "$UFUSER:$UFUSER" "$UFDIR"
chmod 700 /usr/local/upfast chmod 700 "$UFDIR"
su upfast -c' su "$UFUSER" -c"
cd cd
git clone https://code.cronyakatsuki.xyz/crony/upfast . git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
exit 1
python3 -m venv env python3 -m venv env
. ./env/bin/activate . ./env/bin/activate ||
pip install -r requirements.txt exit1
mkdir upload' pip install -r requirements.txt ||
exit 1
fallocate -l $SIZE storage
mkfs.ext4 storage
mount storage upload
rm -fd /storage/*" ||
exit 1
cp ./upfast.service /etc/systemd/system/upfast.service cp ./upfast.service /etc/systemd/system/upfast.service
systemctl daemon-reload systemctl daemon-reload

View File

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

View File

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