Skip to content

Commit 7748d9e

Browse files
authored
Revert "feat: Stop blocking python_lib.zip at the nginx level in edxapp (#199)" (#200)
This reverts commit 9e4baa3 due to a caching issue.
1 parent 9e4baa3 commit 7748d9e

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ error_page {{ k }} {{ v }};
100100

101101
rewrite ^(.*)/favicon.ico$ {{ NGINX_EDXAPP_FAVICON_PATH }} last;
102102

103+
{% include "python_lib.zip.j2" %}
103104
{% include "common-settings.j2" %}
104105

105106
location @proxy_to_cms_app {

playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ error_page {{ k }} {{ v }};
130130

131131
rewrite ^(.*)/favicon.ico$ {{ NGINX_EDXAPP_FAVICON_PATH }} last;
132132

133+
{% include "python_lib.zip.j2" %}
133134
{% include "common-settings.j2" %}
134135

135136
{% if NGINX_EDXAPP_EMBARGO_CIDRS -%}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# Blackholes an archive of python library files that instructors
3+
# may provide for sandboxed python problem types, the internal
4+
# directive will result in nginx emitting an nginx 404. Users
5+
# will not be redirected to the application 404 page.
6+
location ~* python_lib.zip {
7+
internal;
8+
}
9+

0 commit comments

Comments
 (0)