Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions playbooks/roles/edxapp/templates/lms_gunicorn.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ timeout = 300
bind = "{{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }}"
pythonpath = "{{ edxapp_code_dir }}"

"""
Setting limit_request_field_size to 0 will allow unlimited
header field sizes. This necessary to fix a bug where the
header size is greater than 8190, the hard limit for headers
in Gunicorn versions less than 19.7.0. This shouldn't pose a
security risk since Nginx restricts the header size to 16K.
"""
limit_request_field_size = 0

{% if EDXAPP_LMS_MAX_REQ -%}
max_requests = {{ EDXAPP_LMS_MAX_REQ }}
{% endif -%}
Expand Down