move to ssl offloading, rather than processing ssl inside the python code - just easier / more consistent with other traefik enabled containers
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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 &
|
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
|
# 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
|
# we will keep the container can login by hand and check the issue/error
|
||||||
sleep 99999
|
sleep 99999
|
||||||
|
|||||||
Reference in New Issue
Block a user