From 42eeed7c45ca566380c69ef7b5f535b7d13fd86d Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 10 Mar 2024 13:39:00 +1100 Subject: [PATCH] move to ssl offloading, rather than processing ssl inside the python code - just easier / more consistent with other traefik enabled containers --- wrapper.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrapper.sh b/wrapper.sh index 7617cb0..9b56ca4 100755 --- a/wrapper.sh +++ b/wrapper.sh @@ -1,7 +1,10 @@ #!/bin/bash +echo "ENV is set to: $ENV" &> /var/log/pa_job_manager.out & + su mythtv -g mythtv -c 'ENV="production" python3 -u /code/pa_job_manager.py' &> /var/log/pa_job_manager.out & -gunicorn --bind=0.0.0.0:443 --workers=4 --threads=16 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app --env ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output +gunicorn --bind=0.0.0.0:80 --workers=4 --threads=16 main:app --env ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output + # this should never be invoked unless gunicorn fails -- in that case, at least # we will keep the container can login by hand and check the issue/error sleep 99999