[manual] Add endpoint to cleanup a finished events queue.

This requires a puppet apply on each of staging and prod0 to update
the nginx configuration to support the new URL when it is deployed.

(imported from commit a35a71a563fd1daca0d3ea4ec6874c5719a8564f)
This commit is contained in:
Tim Abbott
2013-11-19 17:11:30 -05:00
parent 5973f20b69
commit ca8225cf47
6 changed files with 37 additions and 13 deletions

View File

@@ -84,6 +84,7 @@ class Resource(resource.Resource):
request.requestHeaders.setRawHeaders('X-Forwarded-Host', [proxy_host])
if (request.uri in ['/json/get_events'] or
request.uri.startswith('/json/events') or
request.uri.startswith('/api/v1/events') or
request.uri.startswith('/sockjs')):
return proxy.ReverseProxyResource('localhost', tornado_port, '/'+name)