postinst - fixed service file
This commit is contained in:
parent
0f345f52ab
commit
548e1c9492
@ -9,18 +9,19 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
User=www-data
|
User=www-data
|
||||||
Group=www-data
|
Group=www-data
|
||||||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
EnvironmentFile=/etc/fastapi-dls/env
|
||||||
WorkingDirectory=/usr/share/fastapi-dls
|
WorkingDirectory=/usr/share/fastapi-dls
|
||||||
EnvironmentFile=/etc/fastapi-dls.env
|
ExecStart=uvicorn main:app \\
|
||||||
ExecStart=uvicorn main:app \
|
--env-file /etc/fastapi-dls/env \\
|
||||||
--env-file /etc/fastapi-dls.env \
|
--host \$DLS_URL --port \$DLS_PORT \\
|
||||||
--host $DLS_URL --port $DLS_PORT \
|
--app-dir /usr/share/fastapi-dls/app \\
|
||||||
--app-dir /usr/share/fastapi-dls/app \
|
--ssl-keyfile /etc/fastapi-dls/webserver.key \\
|
||||||
--ssl-keyfile /etc/fastapi-dls/webserver.key \
|
--ssl-certfile /opt/fastapi-dls/webserver.crt \\
|
||||||
--ssl-certfile /opt/fastapi-dls/webserver.crt \
|
|
||||||
--proxy-headers
|
--proxy-headers
|
||||||
Restart=always
|
Restart=always
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
Type=notify
|
Type=simple
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user