From 79e05a0ea7f602f838ca30de32b1ab40b3fd4946 Mon Sep 17 00:00:00 2001 From: fab Date: Sat, 17 Aug 2024 16:50:22 +0200 Subject: [PATCH] Update autoscaleapi.service - fixed $PATH for pct issue - you can force to listen on localhost only (more secure) by replacing 0.0.0.0 with 127.0.0.1 --- api/autoscaleapi.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/autoscaleapi.service b/api/autoscaleapi.service index 057eceb..56271f8 100644 --- a/api/autoscaleapi.service +++ b/api/autoscaleapi.service @@ -5,9 +5,9 @@ After=network.target [Service] User=root Group=root -Environment="PATH=/usr/local/bin:/usr/bin:/bin" -WorkingDirectory=/usr/local/bin/autoscaleapi -ExecStart=/usr/local/bin/gunicorn --workers 2 --bind 0.0.0.0:5000 app:app +Environment="PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin" +WorkingDirectory=/usr/local/bin/autoscaleapi/ +ExecStart=/usr/local/bin/gunicorn --workers 3 --bind 0.0.0.0:5000 app:app # Restart on failure Restart=on-failure