diff --git a/etc/systemd/system/metobs_api.service b/etc/systemd/system/metobs_api.service index bb7fb11b8b71d58800c8a2876323fd0b1c70cb5e..be89fcc554dc0900a33ba0161d8882bfa30259bb 100644 --- a/etc/systemd/system/metobs_api.service +++ b/etc/systemd/system/metobs_api.service @@ -9,6 +9,7 @@ User=daemon Group=metobsgrp RuntimeDirectory=metobs_api WorkingDirectory=/tmp +Environment="METOBSAPI_SETTINGS=/home/metobs/metobs_api_settings.py" ExecStart=/opt/metobs/metobs_api/bin/gunicorn --pid /run/metobs_api/pid \ --bind unix:/run/metobs_api/socket --workers 8 -n metobs_api \ --max-requests 1000 metobsapi.server:app