2022-12-28 20:13:20 +00:00
|
|
|
[Unit]
|
|
|
|
Description=FastAPI-DLS
|
|
|
|
Documentation=https://git.collinwebdesigns.de/oscar.krause/fastapi-dls
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-12-30 06:33:17 +00:00
|
|
|
Type=simple
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
2022-12-28 20:13:20 +00:00
|
|
|
EnvironmentFile=/etc/default/fastapi-dls
|
2022-12-30 06:33:17 +00:00
|
|
|
ExecStart=/usr/bin/uvicorn main:app --proxy-headers --env-file=/etc/default/fastapi-dls --host=${LISTEN_IP} --port=${DLS_PORT} --app-dir=/opt/fastapi-dls --ssl-keyfile=${INSTANCE_SSL_KEY} --ssl-certfile=${INSTANCE_SSL_CERT}
|
2022-12-28 20:13:20 +00:00
|
|
|
Restart=on-abort
|
2022-12-30 06:33:17 +00:00
|
|
|
User=http
|
|
|
|
Group=http
|
2022-12-28 20:13:20 +00:00
|
|
|
|
|
|
|
[Install]
|
2022-12-30 06:33:17 +00:00
|
|
|
WantedBy=multi-user.target
|