Adding support for reverse proxies to resultsdb. Fixes T277
ClosedPublic

Authored by tflink on Jul 7 2014, 1:41 PM.

Details

Summary

Adding config changes to make sure resultsdb behaves when behind a proxy

Test Plan

Tested locally, will test in dev

Diff Detail

Repository
rRSDB resultsdb
Lint
Lint Skipped
Unit
Unit Tests Skipped
tflink retitled this revision from to Adding support for reverse proxies to resultsdb. Fixes T277.Jul 7 2014, 1:41 PM
tflink updated this object.
tflink edited the test plan for this revision. (Show Details)
tflink added reviewers: mkrizek, jskladan.
tflink added a comment.Jul 7 2014, 1:58 PM

To test this, make sure that httpd is installed on the test machine. Then add a conf file in /etc/httpd/conf.d which contains:

RewriteEngine On

<Location /results/ >
  ProxyPass http://127.0.0.1:5000/
  ProxyPassReverse http://127.0.0.1:5000/
  RequestHeader add X-Script-Name /results/
</Location>

Then, while resultsdb is running, run curl http://127.0.0.1/results/api/v1.0/jobs.The href and next urls at the end of the json should be of the form http://127.0.0.1/results/api/v1.0/XXXXX and *not* http://127.0.0.1/api/v1.0/XXXX

tflink abandoned this revision.Jul 7 2014, 4:22 PM

Since nobody who has time is willing to review this and it needs to be done, I'm just pushing the change since I'll be the one fixing stuff if it causes problems

tflink closed this revision.Jul 7 2014, 4:27 PM
tflink updated this revision to Diff 532.

Closed by commit rRSDBd05c620ce8d7 (authored by @tflink).