Add /connection to rewrite rules

We need to forward requests for /connection to zuul_status_url, which is
the scheduler port 8001.

This will need to get updated when we land the move-gh-to-zuul-web
patches.

Change-Id: I6d10e090b37218176e969128c337b0d431870d41
This commit is contained in:
Monty Taylor 2018-01-19 12:42:44 -06:00
parent 737b2ff8ee
commit 84d7483224
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@
<% end %>
<% if @zuulv3 %>
RewriteRule ^/connection/(.*) <%= @zuul_status_url %>/connection/$1 [P]
RewriteRule ^/status.json <%= @zuul_web_url %>/status.json [P]
RewriteRule ^/status.html <%= @zuul_web_url %>/status.html [P]
RewriteRule ^/jobs.json <%= @zuul_web_url %>/jobs.json [P]
@ -120,6 +121,7 @@
<% end %>
<% if @zuulv3 %>
RewriteRule ^/connection/(.*) <%= @zuul_status_url %>/connection/$1 [P]
RewriteRule ^/status.json <%= @zuul_web_url %>/status.json [P]
RewriteRule ^/status.html <%= @zuul_web_url %>/status.html [P]
RewriteRule ^/jobs.json <%= @zuul_web_url %>/jobs.json [P]