From 7898052207f4274037202c9e436f48283a7a7754 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 27 Dec 2022 17:00:33 +0100 Subject: [PATCH] fixed service --- DEBIAN/postinst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 99e3e41..1e8d83e 100644 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -10,13 +10,14 @@ After=network.target User=www-data Group=www-data WorkingDirectory=/usr/share/fastapi-dls -ExecStart=uvicorn \ +EnvironmentFile=/etc/fastapi-dls.env +ExecStart=uvicorn main:app \ + --env-file /etc/fastapi-dls.env \ --host $DLS_URL --port $DLS_PORT \ --app-dir /usr/share/fastapi-dls/app \ --ssl-keyfile /etc/fastapi-dls/webserver.key \ --ssl-certfile /opt/fastapi-dls/webserver.crt \ --proxy-headers -EnvironmentFile=/etc/fastapi-dls.env Restart=always KillSignal=SIGQUIT Type=notify