Adding config changes to make sure resultsdb behaves when behind a proxy
Details
Details
- Reviewers
mkrizek jskladan - Maniphest Tasks
- T277: support proxying in resultsdb
- Commits
- rRSDBd05c620ce8d7: Adding support for reverse proxies to resultsdb. Fixes T277
Tested locally, will test in dev
Diff Detail
Diff Detail
- Repository
- rRSDB resultsdb
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
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
Comment Actions
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