Hello!
My org is using LTI content from a vendor and they seem to have increased their UWSGI header size recently beyond the default limit of 8192 that tutor has in config
I see that there is already a template patch that we can use to amend values like the buffer-size
in the uwsgi.ini
file, so I went ahead and created a new uwsgi-config
patch in our plugins patch directory with the following in it:
buffer-size = 16384
Upon running tutor config save
I do see that the updated buffer-size was appended to $(tutor config printroot)/env/apps/openedx/uwsgi.ini
(and I assume the second buffer-size
key pair will just take precedence over the first)
[uwsgi]
static-map = /static=/openedx/staticfiles/
static-map = /media=/openedx/media/
http = 0.0.0.0:8000
buffer-size = 8192
wsgi-file = $(SERVICE_VARIANT)/wsgi.py
processes = $(UWSGI_WORKERS)
thunder-lock = true
single-interpreter = true
enable-threads = true
buffer-size = 16384
But I also see that the patch is not appending this overwritten value to the uwsgi.ini
file in $(tutor config printroot)/env/build/openedx/settings/uwsgi.ini
and as such does not seem to be actually injected into the container images on build.
Am I misunderstanding what this template patch is supposed to be doing or are we using it incorrectly? I wasn’t able to find any discussion about this patch really so any insight would be great.
Thanks!
Andrew