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
05bc61a4
Commit
05bc61a4
authored
Oct 23, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #358 from edx/feanil/xqueue_xserver_fixes
Fixes to the xqueue and xserver roles.
parents
96a5b845
20f0dfc7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
playbooks/roles/nginx/templates/xqueue.j2
+4
-0
playbooks/roles/xqueue/defaults/main.yml
+2
-0
playbooks/roles/xserver/defaults/main.yml
+9
-9
No files found.
playbooks/roles/nginx/templates/xqueue.j2
View file @
05bc61a4
...
@@ -14,6 +14,10 @@ server {
...
@@ -14,6 +14,10 @@ server {
try_files $uri @proxy_to_app;
try_files $uri @proxy_to_app;
}
}
# No basic auth security on the heartbeat url, so that ELB can use it
location /xqueue/status/{
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
05bc61a4
...
@@ -68,6 +68,8 @@ xqueue_auth_config:
...
@@ -68,6 +68,8 @@ xqueue_auth_config:
PASSWORD
:
$XQUEUE_MYSQL_PASSWORD
PASSWORD
:
$XQUEUE_MYSQL_PASSWORD
HOST
:
$XQUEUE_MYSQL_HOST
HOST
:
$XQUEUE_MYSQL_HOST
PORT
:
$XQUEUE_MYSQL_PORT
PORT
:
$XQUEUE_MYSQL_PORT
RABBITMQ_USER
:
$XQUEUE_RABBITMQ_USER
RABBITMQ_PASS
:
$XQUEUE_RABBITMQ_PASS
xqueue_create_db
:
'
yes'
xqueue_create_db
:
'
yes'
xqueue_source_repo
:
https://github.com/edx/xqueue.git
xqueue_source_repo
:
https://github.com/edx/xqueue.git
...
...
playbooks/roles/xserver/defaults/main.yml
View file @
05bc61a4
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
XSERVER_NGINX_PORT
:
18050
XSERVER_NGINX_PORT
:
18050
XSERVER_BASIC_AUTH
:
False
XSERVER_BASIC_AUTH
:
False
RABBIT
_RUN_URL
:
'
'
XSERVER
_RUN_URL
:
'
'
RABBIT
_GRADER_ROOT
:
'
'
XSERVER
_GRADER_ROOT
:
'
'
RABBIT
_LOGGING_ENV
:
'
sandbox'
XSERVER
_LOGGING_ENV
:
'
sandbox'
RABBIT
_SYSLOG_SERVER
:
'
'
XSERVER
_SYSLOG_SERVER
:
'
'
# by default do not check out the content
# by default do not check out the content
# repo needed on the xserver for grading
# repo needed on the xserver for grading
# python submissions, TODO: replace with an open
# python submissions, TODO: replace with an open
...
@@ -15,11 +15,11 @@ RABBIT_SYSLOG_SERVER: ''
...
@@ -15,11 +15,11 @@ RABBIT_SYSLOG_SERVER: ''
XSERVER_GRADER_CHECKOUT
:
False
XSERVER_GRADER_CHECKOUT
:
False
xserver_env_config
:
xserver_env_config
:
RUN_URL
:
$
RABBIT
_RUN_URL
RUN_URL
:
$
XSERVER
_RUN_URL
GRADER_ROOT
:
$
RABBIT
_GRADER_ROOT
GRADER_ROOT
:
$
XSERVER
_GRADER_ROOT
LOGGING_ENV
:
$
RABBIT
_LOGGING_ENV
LOGGING_ENV
:
$
XSERVER
_LOGGING_ENV
LOG_DIR
:
"
{{
storage_base_dir
}}/logs/xserver"
LOG_DIR
:
"
{{
storage_base_dir
}}/logs/xserver"
SYSLOG_SERVER
:
$
RABBIT
_SYSLOG_SERVER
SYSLOG_SERVER
:
$
XSERVER
_SYSLOG_SERVER
SANDBOX_PYTHON
:
'
/opt/edx_apparmor_sandbox/bin/python'
SANDBOX_PYTHON
:
'
/opt/edx_apparmor_sandbox/bin/python'
xserver_git_identity_path
:
"
{{
secure_dir
}}/files/git-identity"
xserver_git_identity_path
:
"
{{
secure_dir
}}/files/git-identity"
...
@@ -38,7 +38,7 @@ xserver_sandbox_venv_dir: "{{ venv_dir }}_apparmor_sandbox"
...
@@ -38,7 +38,7 @@ xserver_sandbox_venv_dir: "{{ venv_dir }}_apparmor_sandbox"
xserver_requirements_file
:
"
{{
xserver_code_dir
}}/requirements.txt"
xserver_requirements_file
:
"
{{
xserver_code_dir
}}/requirements.txt"
xserver_gunicorn_port
:
8050
xserver_gunicorn_port
:
8050
xserver_gunicorn_host
:
8050
xserver_gunicorn_host
:
'
localhost'
xserver_debian_pkgs
:
xserver_debian_pkgs
:
-
build-essential
-
build-essential
...
...
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