Adds proxy handling support so that resultsdb_frontend can be proxied
Details
Details
- Reviewers
mkrizek jskladan - Maniphest Tasks
- T276: support proxying in resultsdb_frontend
- Commits
- rRSFEd72d3d061925: Adding reverse proxy support. Fixes T276
Tested locally
Diff Detail
Diff Detail
- Repository
- rRSFE resultsdb_frontend
- 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:5001/ ProxyPassReverse http://127.0.0.1:5001/ RequestHeader add X-Script-Name /results/ </Location>
Then, while resultsdb and resultsdb_frontend are running, access http://127.0.0.1/results/. With resultsdb_frontend, you should be redirected to http://127.0.0.1/results/jobs instead of http://127.0.0.1/jobs
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