PKGBUILD - updated service running uvicorn natively instead of calling main.py

- fixed issue with not loading env variables inside to fastapi
- fixed to not using "python main.py" which meant for development
This commit is contained in:
Oscar Krause
2022-12-30 07:33:17 +01:00
parent 5fc9fc8e0a
commit 5e40d7944a
4 changed files with 21 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ DEBUG=false
# Where the client can find the DLS server
## DLS_URL should be a hostname
LISTEN_IP="0.0.0.0"
DLS_URL="localhost.localdomain"
DLS_PORT=8443
CORS_ORIGINS="https://$DLS_URL:$DLS_PORT"
@@ -21,3 +22,7 @@ INSTANCE_REF="<<instanceref>>"
# Site-wide signing keys
INSTANCE_KEY_RSA="/var/lib/fastapi-dls/instance.private.pem"
INSTANCE_KEY_PUB="/var/lib/fastapi-dls/instance.public.pem"
# TLS certificate
INSTANCE_SSL_CERT="/var/lib/fastapi-dls/cert/webserver.crt"
INSTANCE_SSL_KEY="/var/lib/fastapi-dls/cert/webserver.key"