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
edx
configuration
Commits
7172ee8c
Commit
7172ee8c
authored
Apr 13, 2016
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add P3P headers to the IDAs
make it a templated variable so that you can override it for your installation.
parent
3f647783
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
2 deletions
+15
-2
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/nginx/defaults/main.yml
View file @
7172ee8c
...
@@ -127,3 +127,4 @@ nginx_cfg:
...
@@ -127,3 +127,4 @@ nginx_cfg:
NGINX_ROBOT_RULES
:
[
]
NGINX_ROBOT_RULES
:
[
]
NGINX_EDXAPP_EMBARGO_CIDRS
:
[]
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 @
7172ee8c
...
@@ -43,7 +43,7 @@ error_page {{ k }} {{ v }};
...
@@ -43,7 +43,7 @@ error_page {{ k }} {{ v }};
{% endif %}
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
# 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
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
# there is an unfortunate mix of conditonals here.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/credentials.j2
View file @
7172ee8c
...
@@ -32,6 +32,9 @@ server {
...
@@ -32,6 +32,9 @@ server {
listen {{ CREDENTIALS_NGINX_PORT }} {{ default_site }};
listen {{ CREDENTIALS_NGINX_PORT }} {{ default_site }};
{% endif %}
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';
location ~ ^/static/(?P<file>.*) {
location ~ ^/static/(?P<file>.*) {
root {{ COMMON_DATA_DIR }}/{{ credentials_service_name }};
root {{ COMMON_DATA_DIR }}/{{ credentials_service_name }};
try_files /staticfiles/$file =404;
try_files /staticfiles/$file =404;
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/ecommerce.j2
View file @
7172ee8c
...
@@ -30,6 +30,9 @@ server {
...
@@ -30,6 +30,9 @@ server {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
{% endif %}
{% 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
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
# there is an unfortunate mix of conditonals here.
{% if NGINX_REDIRECT_TO_HTTPS %}
{% if NGINX_REDIRECT_TO_HTTPS %}
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/edx_notes_api.j2
View file @
7172ee8c
...
@@ -7,6 +7,9 @@ upstream {{ edx_notes_api_service_name }}_app_server {
...
@@ -7,6 +7,9 @@ upstream {{ edx_notes_api_service_name }}_app_server {
server {
server {
listen {{ edx_notes_api_nginx_port }} default_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
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
# there is an unfortunate mix of conditonals here.
{% if NGINX_REDIRECT_TO_HTTPS %}
{% if NGINX_REDIRECT_TO_HTTPS %}
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/insights.j2
View file @
7172ee8c
...
@@ -32,6 +32,9 @@ location @proxy_to_app {
...
@@ -32,6 +32,9 @@ location @proxy_to_app {
proxy_redirect off;
proxy_redirect off;
proxy_pass http://insights_app_server;
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
# Nginx does not support nested condition or or conditions so
# there is an unfortunate mix of conditonals here.
# there is an unfortunate mix of conditonals here.
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
7172ee8c
...
@@ -63,7 +63,7 @@ error_page {{ k }} {{ v }};
...
@@ -63,7 +63,7 @@ error_page {{ k }} {{ v }};
{% endif %}
{% endif %}
# Prevent invalid display courseware in IE 10+ with high privacy settings
# 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
# 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