Skip to content

Commit abea4ab

Browse files
committed
Update lms.j2
1 parent 1807300 commit abea4ab

File tree

1 file changed

+11
-1
lines changed
  • playbooks/roles/nginx/templates/edx/app/nginx/sites-available

1 file changed

+11
-1
lines changed

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

+11-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@ server {
5757
{% include "basic-auth.j2" %}
5858
try_files $uri @proxy_to_lms_app;
5959
}
60-
60+
61+
location /register {
62+
63+
satisfy any;
64+
allow 127.0.0.1;
65+
allow 10.0.0.0/8;
66+
allow 192.168.0.0/16;
67+
allow 172.16.0.0/12;
68+
deny all;
69+
}
70+
6171
# No basic auth security on the github_service_hook url, so that github can use it for cms
6272
location /github_service_hook {
6373
try_files $uri @proxy_to_lms_app;

0 commit comments

Comments
 (0)