From 87334fbfadf312f925294fe01521353ac41fa03b Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 20 Mar 2023 20:21:02 +0100 Subject: [PATCH] added unraid section --- .UNRAID/FastAPI-DLS.xml | 48 +++++++++++++++++++++++++++++++++++++++++ README.md | 17 ++++++++++++++- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .UNRAID/FastAPI-DLS.xml diff --git a/.UNRAID/FastAPI-DLS.xml b/.UNRAID/FastAPI-DLS.xml new file mode 100644 index 0000000..f6bf52b --- /dev/null +++ b/.UNRAID/FastAPI-DLS.xml @@ -0,0 +1,48 @@ + + + FastAPI-DLS + collinwebdesigns/fastapi-dls:latest + https://hub.docker.com/r/collinwebdesigns/fastapi-dls + br0 + + sh + false + + + Source: +https://git.collinwebdesigns.de/oscar.krause/fastapi-dls#docker + +Make sure you create these certificates before starting the container for the first time: +``` +# Check https://git.collinwebdesigns.de/oscar.krause/fastapi-dls/-/tree/main/#docker for more information: +WORKING_DIR=/mnt/user/appdata/fastapi-dls/cert +mkdir -p $WORKING_DIR +cd $WORKING_DIR +# create instance private and public key for singing JWT's +openssl genrsa -out $WORKING_DIR/instance.private.pem 2048 +openssl rsa -in $WORKING_DIR/instance.private.pem -outform PEM -pubout -out $WORKING_DIR/instance.public.pem +# create ssl certificate for integrated webserver (uvicorn) - because clients rely on ssl +openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout $WORKING_DIR/webserver.key -out $WORKING_DIR/webserver.crt +``` + + + https://[IP]:[PORT:443] + + https://git.collinwebdesigns.de/uploads/-/system/project/avatar/106/png-transparent-nvidia-grid-logo-business-nvidia-electronics-text-trademark.png?width=64 + --restart always + + + 1679161568 + + + + 443 + /mnt/user/appdata/fastapi-dls/cert + 443 + /mnt/user/appdata/fastapi-dls/data + + + sqlite:////app/database/db.sqlite + true + 90 + diff --git a/README.md b/README.md index add9f24..fe8fae4 100644 --- a/README.md +++ b/README.md @@ -352,6 +352,17 @@ pacman -U --noconfirm fastapi-dls.pkg.tar.zst Start with `systemctl start fastapi-dls.service` and enable autostart with `systemctl enable fastapi-dls.service`. +## unRAID + +1. Download [this xml file](.UNRAID/FastAPI-DLS.xml) +2. Put it in /boot/config/plugins/dockerMan/templates-user/ +3. Go to Docker page, scroll down to `Add Container`, click on Template list and choose `FastAPI-DLS` +4. Open terminal/ssh, follow the instructions in overview description +5. Setup your container `IP`, `Port`, `DLS_URL` and `DLS_PORT` +6. Apply and let it boot up + +*Unraid users must also make sure they have Host access to custom networks enabled if unraid is the vgpu guest*. + ## Let's Encrypt Certificate (optional) If you're using installation via docker, you can use `traefik`. Please refer to their documentation. @@ -673,4 +684,8 @@ The error message can safely be ignored (since we have no license limitation :P) Thanks to vGPU community and all who uses this project and report bugs. -Special thanks to @samicrusader who created build file for ArchLinux and @cyrus who wrote the section for openSUSE. +Special thanks to + +- @samicrusader who created build file for ArchLinux +- @cyrus who wrote the section for openSUSE +- @midi who wrote the section for unRAID