mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-22 14:28:48 +00:00
5e40d7944a
- fixed issue with not loading env variables inside to fastapi - fixed to not using "python main.py" which meant for development
16 lines
527 B
Desktop File
16 lines
527 B
Desktop File
[Unit]
|
|
Description=FastAPI-DLS
|
|
Documentation=https://git.collinwebdesigns.de/oscar.krause/fastapi-dls
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
EnvironmentFile=/etc/default/fastapi-dls
|
|
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}
|
|
Restart=on-abort
|
|
User=http
|
|
Group=http
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |