summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awx/settings/defaults.py1
-rw-r--r--tools/ansible/roles/dockerfile/files/uwsgi.ini5
2 files changed, 6 insertions, 0 deletions
diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py
index 6f57730627..50e467adf2 100644
--- a/awx/settings/defaults.py
+++ b/awx/settings/defaults.py
@@ -1017,6 +1017,7 @@ RECEPTOR_LOG_LEVEL = 'info'
MIDDLEWARE = [
'django_guid.middleware.guid_middleware',
+ 'ansible_base.lib.middleware.logging.log_request.LogTracebackMiddleware',
'awx.main.middleware.SettingsCacheMiddleware',
'awx.main.middleware.TimingMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
diff --git a/tools/ansible/roles/dockerfile/files/uwsgi.ini b/tools/ansible/roles/dockerfile/files/uwsgi.ini
index bfd1f87f70..0f27eb9b41 100644
--- a/tools/ansible/roles/dockerfile/files/uwsgi.ini
+++ b/tools/ansible/roles/dockerfile/files/uwsgi.ini
@@ -10,6 +10,11 @@ master-fifo = /var/lib/awx/awxfifo
max-requests = 1000
buffer-size = 32768
+harakiri = 115
+harakiri-graceful-timeout = 110
+harakiri-graceful-signal = 6
+py-call-osafterfork = true
+
if-env = UWSGI_MOUNT_PATH
mount = %(_)=awx.wsgi:application
endif =