moving resultsdb and resultsdb_frontend to separated endpoints for proxying

This commit is contained in:
Tim Flink 2014-07-07 19:39:58 +00:00
parent 270871cdf0
commit 6f85dfb50c
4 changed files with 11 additions and 4 deletions

View file

@ -21,8 +21,8 @@ virt_install_command: /usr/sbin/virt-install -n {{ inventory_hostname }} -r {{ m
resultsdb_db_host: db-qa01.qa.fedoraproject.org
resultsdb_db_port: 5432
resultsdb_endpoint: '/resultsdb'
resultsdb_fe_endpoint: '/'
resultsdb_endpoint: '/resultsdb_api'
resultsdb_fe_endpoint: '/resultsdb'
resultsdb_db_name: resultsdb_dev
allowed_hosts:
- 10.5.124

View file

@ -21,10 +21,11 @@ buildslave_dir: /home/buildslave/slave
master_dir: /home/buildmaster/master
master_user: buildmaster
external_hostname: taskotron.dev.fedoraproject.org
resultsdb_url: http://resultsdb-dev01.qa.fedoraproject.org/resultsdb/api/v1.0
resultsdb_url: http://resultsdb-dev01.qa.fedoraproject.org/resultsdb_api/api/v1.0
resultsdb_frontend_url: http://resultsdb-dev01.qa.fedoraproject.org/
resultsdb_external_url: https://taskotron-dev.fedoraproject.org/resultsdb/
resultsdb_endpoint: resultsdb
resultsdb_api_endpoint: resultsdb_api
landingpage_title: "Taskotron Development"
deployment_type: dev
tcp_ports: [ 80, 443, "{{ buildslave_port }}" ]

View file

@ -2,7 +2,7 @@
lvm_size: 20000
slave_user: buildslave
taskotron_fas_user: taskotron
resultsdb_server: http://resultsdb-dev01.qa.fedoraproject.org/resultsdb/api/v1.0/
resultsdb_server: http://resultsdb-dev01.qa.fedoraproject.org/resultsdb_api/api/v1.0/
bodhi_server: http://10.5.124.181/fakefedorainfra/bodhi/
kojihub_url: http://koji.fedoraproject.org/kojihub
taskotron_master: http://taskotron-dev.fedoraproject.org/taskmaster/

View file

@ -3,3 +3,9 @@
ProxyPassReverse {{ resultsdb_frontend_url }}
RequestHeader add X-Script-Name /{{ resultsdb_endpoint }}/
</Location>
<Location /{{ resultsdb_api_endpoint }}/ >
ProxyPass {{ resultsdb_url }}
ProxyPassReverse {{ resultsdb_url }}
RequestHeader add X-Script-Name /{{ resultsdb_api_endpoint }}/
</Location>