forked from crony/UpFast
minor corrections
This commit is contained in:
parent
4996181ebf
commit
2c4f3a863c
14
README.md
14
README.md
@ -1,6 +1,6 @@
|
|||||||
# UpFast
|
# UpFast
|
||||||
|
|
||||||
simple tool for uploading and sharing files that is selfhostable.
|
Simple tool for uploading and sharing files that you can self-host.
|
||||||
|
|
||||||
## How to host
|
## How to host
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ We will also be setting up an specific user to run the app as safe as possible w
|
|||||||
sudo useradd --shell /bin/bash --system \
|
sudo useradd --shell /bin/bash --system \
|
||||||
--home-dir "/usr/local/upfast" -m upfast
|
--home-dir "/usr/local/upfast" -m upfast
|
||||||
|
|
||||||
# Change to upfast user and cd /usr/local/upfast
|
# Change to upfast user and go to upfast dir
|
||||||
su upfast
|
su upfast
|
||||||
cd
|
cd
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ echo "source /usr/local/upfast/venv/bin/activate" > "/usr/local/upfast/.profile"
|
|||||||
# create the upload directory
|
# create the upload directory
|
||||||
mkdir upload
|
mkdir upload
|
||||||
|
|
||||||
# Run the project
|
# UpFast go brrr
|
||||||
uvicorn main:app --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips='*'
|
uvicorn main:app --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips='*'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -55,8 +55,14 @@ WorkingDirectory=/usr/local/upfast/
|
|||||||
ExecStart=/usr/local/upfast/venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips='*'
|
ExecStart=/usr/local/upfast/venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips='*'
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
```
|
```
|
||||||
|
Finally run following commmands.
|
||||||
|
|
||||||
Then just run `sudo systemctl daemon-reload` and enable the service with `sudo systemctl enable upfast.service`
|
```
|
||||||
|
# refresh services
|
||||||
|
`sudo systemctl daemon-reload`
|
||||||
|
# enable the service
|
||||||
|
`sudo systemctl enable upfast.service`
|
||||||
|
```
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user