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
a6629604
Commit
a6629604
authored
Oct 15, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding lists of hosts for nginx backends
parent
9403d5be
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
12 deletions
+30
-12
playbooks/roles/nginx/defaults/main.yml
+12
-0
playbooks/roles/nginx/templates/cms.j2
+3
-2
playbooks/roles/nginx/templates/lms-preview.j2
+3
-2
playbooks/roles/nginx/templates/lms.j2
+3
-2
playbooks/roles/nginx/templates/ora.j2
+3
-2
playbooks/roles/nginx/templates/xqueue.j2
+3
-2
playbooks/roles/nginx/templates/xserver.j2
+3
-2
No files found.
playbooks/roles/nginx/defaults/main.yml
View file @
a6629604
...
...
@@ -4,6 +4,18 @@ pkgs:
nginx
:
state
:
installed
nginx_xserver_gunicorn_hosts
:
-
127.0.0.1
nginx_xqueue_gunicorn_hosts
:
-
127.0.0.1
nginx_ora_gunicorn_hosts
:
-
127.0.0.1
nginx_lms_gunicorn_hosts
:
-
127.0.0.1
nginx_lms_preview_gunicorn_hosts
:
-
127.0.0.1
nginx_cms_gunicorn_hosts
:
-
127.0.0.1
nginx_cfg
:
# - link - turn on
...
...
playbooks/roles/nginx/templates/cms.j2
View file @
a6629604
upstream cms-backend {
# For a TCP configuration:
server {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} fail_timeout=0;
{% for host in nginx_cms_gunicorn_hosts %}
server {{ host }}:{{ edxapp_cms_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
playbooks/roles/nginx/templates/lms-preview.j2
View file @
a6629604
upstream lms-preview-backend {
# For a TCP configuration:
server {{ edxapp_lms_preview_gunicorn_host }}:{{ edxapp_lms_preview_gunicorn_port }} fail_timeout=0;
{% for host in nginx_lms_preview_gunicorn_hosts %}
server {{ host }}:{{ edxapp_lms_preview_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
playbooks/roles/nginx/templates/lms.j2
View file @
a6629604
upstream lms-backend {
# For a TCP configuration:
server {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} fail_timeout=0;
{% for host in nginx_lms_gunicorn_hosts %}
server {{ host }}:{{ edxapp_lms_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
playbooks/roles/nginx/templates/ora.j2
View file @
a6629604
upstream app_server {
# For a TCP configuration:
server {{ ora_gunicorn_host }}:{{ ora_gunicorn_port }} fail_timeout=0;
{% for host in nginx_ora_gunicorn_hosts %}
server {{ host }}:{{ ora_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
playbooks/roles/nginx/templates/xqueue.j2
View file @
a6629604
upstream xqueue_app_server {
# For a TCP configuration:
server {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} fail_timeout=0;
{% for host in nginx_xqueue_gunicorn_hosts %}
server {{ host }}:{{ xqueue_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
playbooks/roles/nginx/templates/xserver.j2
View file @
a6629604
...
...
@@ -9,8 +9,9 @@
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
upstream xserver_app_server {
# For a TCP configuration:
server {{ xserver_gunicorn_host }}:{{ xserver_gunicorn_port }} fail_timeout=0;
{% for host in nginx_xserver_gunicorn_hosts %}
server {{ host }}:{{ xserver_gunicorn_port }} fail_timeout=0;
{% endfor %}
}
server {
...
...
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