Commit 158f33a8 by Kevin Falcone

Merge pull request #2921 from mitodl/bdero/custom-nginx-allow-list

Make basic auth exceptions an overridable list
parents 69c1be96 8323d215
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
COMMON_ENABLE_BASIC_AUTH: False COMMON_ENABLE_BASIC_AUTH: False
COMMON_HTPASSWD_USER: edx COMMON_HTPASSWD_USER: edx
COMMON_HTPASSWD_PASS: edx COMMON_HTPASSWD_PASS: edx
COMMON_BASIC_AUTH_EXCEPTIONS:
- 192.168.0.0/16
- 172.16.0.0/12
# Turn on syncing logs on rotation for edx # Turn on syncing logs on rotation for edx
# application and tracking logs, must also # application and tracking logs, must also
# have the AWS role installed # have the AWS role installed
......
...@@ -2,13 +2,10 @@ ...@@ -2,13 +2,10 @@
satisfy any; satisfy any;
allow 127.0.0.1; allow 127.0.0.1;
allow 192.168.0.0/16;
allow 172.16.0.0/12;
allow 10.3.110.0/24; {% for cidr in COMMON_BASIC_AUTH_EXCEPTIONS %}
allow 10.3.120.0/24; allow {{ cidr }};
allow 10.8.110.0/24; {% endfor %}
allow 10.8.120.0/24;
deny all; deny all;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment