Commit 05bc61a4 by Feanil Patel

Merge pull request #358 from edx/feanil/xqueue_xserver_fixes

Fixes to the xqueue and xserver roles.
parents 96a5b845 20f0dfc7
...@@ -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;
......
...@@ -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
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment