Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
158f33a8
Commit
158f33a8
authored
9 years ago
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2921 from mitodl/bdero/custom-nginx-allow-list
Make basic auth exceptions an overridable list
parents
69c1be96
8323d215
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
playbooks/roles/common_vars/defaults/main.yml
+4
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/basic-auth.j2
+3
-6
No files found.
playbooks/roles/common_vars/defaults/main.yml
View file @
158f33a8
...
...
@@ -7,6 +7,10 @@
COMMON_ENABLE_BASIC_AUTH
:
False
COMMON_HTPASSWD_USER
:
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
# application and tracking logs, must also
# have the AWS role installed
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/basic-auth.j2
View file @
158f33a8
...
...
@@ -2,13 +2,10 @@
satisfy any;
allow 127.0.0.1;
allow 192.168.0.0/16;
allow 172.16.0.0/12;
allow 10.3.110.0/24;
allow 10.3.120.0/24;
allow 10.8.110.0/24;
allow 10.8.120.0/24;
{% for cidr in COMMON_BASIC_AUTH_EXCEPTIONS %}
allow {{ cidr }};
{% endfor %}
deny all;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment