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
941117ed
Commit
941117ed
authored
Apr 17, 2017
by
Nadeem Shahzad
Committed by
GitHub
Apr 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3127 from edx/derf/redirector_play
redirector play
parents
67846232
55d3491a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
playbooks/edx-east/redirector.yml
+23
-0
playbooks/roles/nginx/defaults/main.yml
+3
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/nginx_redirect.j2
+2
-2
No files found.
playbooks/edx-east/redirector.yml
0 → 100644
View file @
941117ed
-
name
:
Deploy redirector host
hosts
:
all
sudo
:
True
gather_facts
:
True
vars
:
serial_count
:
1
CLUSTER_NAME
:
'
redirector'
serial
:
"
{{
serial_count
}}"
roles
:
-
aws
-
role
:
nginx
nginx_redirects
:
"
{{
NGINX_REDIRECTOR_CUSTOM_REDIRECTS
}}"
REDIRECT_NGINX_PORT
:
"
80"
REDIRECT_SSL_NGINX_PORT
:
"
443"
NGINX_ENABLE_SSL
:
"
{{
REDIRECT_NGINX_ENABLE_SSL
}}"
NGINX_SSL_CERTIFICATE
:
"
{{
REDIRECT_NGINX_SSL_CERTIFICATE
}}"
NGINX_SSL_KEY
:
"
{{
REDIRECT_NGINX_SSL_KEY
}}"
-
role
:
datadog
when
:
COMMON_ENABLE_DATADOG
-
role
:
splunkforwarder
when
:
COMMON_ENABLE_SPLUNKFORWARDER
-
role
:
newrelic
when
:
COMMON_ENABLE_NEWRELIC
playbooks/roles/nginx/defaults/main.yml
View file @
941117ed
...
...
@@ -126,6 +126,9 @@ NGINX_P3P_MESSAGE: 'CP="Open edX does not have a P3P policy."'
COMMON_ENABLE_BASIC_AUTH
:
False
REDIRECT_NGINX_PORT
:
"
{{
EDXAPP_LMS_NGINX_PORT
}}"
REDIRECT_SSL_NGINX_PORT
:
"
{{
EDXAPP_LMS_SSL_NGINX_PORT
}}"
CERTS_ENABLE_BASIC_AUTH
:
"
{{
COMMON_ENABLE_BASIC_AUTH
}}"
ECOMMERCE_ENABLE_BASIC_AUTH
:
"
{{
COMMON_ENABLE_BASIC_AUTH
}}"
EDXAPP_CMS_ENABLE_BASIC_AUTH
:
"
{{
COMMON_ENABLE_BASIC_AUTH
}}"
...
...
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/nginx_redirect.j2
View file @
941117ed
...
...
@@ -5,10 +5,10 @@
{%- endif -%}
server {
listen {{
EDXAPP_LMS
_NGINX_PORT }} {{ default_site }};
listen {{
REDIRECT
_NGINX_PORT }} {{ default_site }};
{% if "ssl" in item.value and item.value['ssl'] == true -%}
listen {{
EDXAPP_LMS
_SSL_NGINX_PORT }} {{ default_site }} ssl;
listen {{
REDIRECT
_SSL_NGINX_PORT }} {{ default_site }} ssl;
ssl_certificate /etc/ssl/certs/{{ NGINX_SSL_CERTIFICATE|basename }};
ssl_certificate_key /etc/ssl/private/{{ NGINX_SSL_KEY|basename }};
{% endif -%}
...
...
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