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
118000ae
Commit
118000ae
authored
Nov 23, 2016
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SEC-220: Block external logged in checking
parent
5f1c598e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+15
-0
No files found.
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
118000ae
...
...
@@ -158,6 +158,21 @@ error_page {{ k }} {{ v }};
try_files $uri @proxy_to_lms_app;
}
# /login?next=<any image> can be used by 3rd party sites in <img> tags to
# determine whether a user on their site is logged into edX.
# The most common image to use is favicon.ico.
location /login {
{% if EDXAPP_LMS_ENABLE_BASIC_AUTH|bool %}
{% include "basic-auth.j2" %}
{% endif %}
if ( $arg_next = "favicon.ico" ) {
return 403;
}
try_files $uri @proxy_to_lms_app;
}
{% if NGINX_EDXAPP_EMBARGO_CIDRS %}
location /embargo {
try_files $uri @proxy_to_lms_app;
...
...
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