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
59422e16
Commit
59422e16
authored
Apr 15, 2016
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2956 from edx/jibsheet/nginx-p3p
Add P3P headers to the IDAs
parents
0f6510f0
9d8e2ee6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
2 deletions
+18
-2
playbooks/roles/ansible-role-django-ida/templates/templates/edx/app/nginx/sites-available/ROLE_NAME.j2
+3
-0
playbooks/roles/nginx/defaults/main.yml
+1
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
+1
-1
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/credentials.j2
+3
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ecommerce.j2
+3
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/edx_notes_api.j2
+3
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/insights.j2
+3
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+1
-1
No files found.
playbooks/roles/ansible-role-django-ida/templates/templates/edx/app/nginx/sites-available/ROLE_NAME.j2
View file @
59422e16
...
...
@@ -63,6 +63,9 @@ server {
proxy_redirect off;
proxy_pass http://{{ role_name }}_app_server;
}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P {{ '{{' }} NGINX_P3P_MESSAGE {{ '}}' }}
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
...
...
playbooks/roles/nginx/defaults/main.yml
View file @
59422e16
...
...
@@ -127,3 +127,4 @@ nginx_cfg:
NGINX_ROBOT_RULES
:
[
]
NGINX_EDXAPP_EMBARGO_CIDRS
:
[]
NGINX_P3P_MESSAGE
:
'
CP="Open
edX
does
not
have
a
P3P
policy."'
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2
View file @
59422e16
...
...
@@ -43,7 +43,7 @@ error_page {{ k }} {{ v }};
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '
CP="Open EdX does not have a P3P policy."
';
add_header P3P '
{{ NGINX_P3P_MESSAGE }}
';
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/credentials.j2
View file @
59422e16
...
...
@@ -32,6 +32,9 @@ server {
listen {{ CREDENTIALS_NGINX_PORT }} {{ default_site }};
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';
location ~ ^/static/(?P<file>.*) {
root {{ COMMON_DATA_DIR }}/{{ credentials_service_name }};
try_files /staticfiles/$file =404;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ecommerce.j2
View file @
59422e16
...
...
@@ -30,6 +30,9 @@ server {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
{% if NGINX_REDIRECT_TO_HTTPS %}
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/edx_notes_api.j2
View file @
59422e16
...
...
@@ -7,6 +7,9 @@ upstream {{ edx_notes_api_service_name }}_app_server {
server {
listen {{ edx_notes_api_nginx_port }} default_server;
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
{% if NGINX_REDIRECT_TO_HTTPS %}
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/insights.j2
View file @
59422e16
...
...
@@ -32,6 +32,9 @@ location @proxy_to_app {
proxy_redirect off;
proxy_pass http://insights_app_server;
}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
59422e16
...
...
@@ -63,7 +63,7 @@ error_page {{ k }} {{ v }};
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '
CP="Open EdX does not have a P3P policy."
';
add_header P3P '
{{ NGINX_P3P_MESSAGE }}
';
# Nginx does not support nested condition or or conditions so
...
...
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