mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
PHP was doing this correctly, but FastAPI was doing this in it's exec script @ docker/scripts/run-fastapi.sh. Modify the fastapi service so that it does the same thing as PHP, and the existing "fastapi restart quirk" is no more. Signed-off-by: Kevin Morris <kevr@0cost.org>
18 lines
533 B
Bash
Executable file
18 lines
533 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "$1" == "uvicorn" ] || [ "$1" == "" ]; then
|
|
exec uvicorn --reload \
|
|
--ssl-certfile /cache/localhost.cert.pem \
|
|
--ssl-keyfile /cache/localhost.key.pem \
|
|
--log-config /docker/logging.conf \
|
|
--host "0.0.0.0" \
|
|
--port 8000 \
|
|
aurweb.asgi:app
|
|
else
|
|
exec hypercorn --reload \
|
|
--certfile /cache/localhost.cert.pem \
|
|
--keyfile /cache/localhost.key.pem \
|
|
--log-config /docker/logging.conf \
|
|
-b "0.0.0.0:8000" \
|
|
aurweb.asgi:app
|
|
fi
|