From 5f6b46499f5a6cc212988b03733317830a83c4e3 Mon Sep 17 00:00:00 2001 From: thomaschiozzi-tndigit Date: Tue, 30 Jul 2024 09:28:15 +0200 Subject: [PATCH] fix: support for attach though wsgi --- example/entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/entrypoint.sh b/example/entrypoint.sh index 90bc849b..30c87ecf 100644 --- a/example/entrypoint.sh +++ b/example/entrypoint.sh @@ -9,4 +9,9 @@ if [[ $GET_IDEM_MDQ_KEY == true ]]; then fi wsgi_file=/.venv/lib/$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')/site-packages/satosa/wsgi.py -uwsgi --ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker --wsgi-file $wsgi_file +wgsi_args="--ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker --wsgi-file $wsgi_file" +if [[ $SATOSA_DEBUG == true ]]; then + wgsi_args="${wsgi_args} --honour-stdin" +fi + +uwsgi $wsgi_args