mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Too much overlap in storage plugin URLs for meaningful loadbalancing and config simplicity. Make poorxy emulate the real situation and change related URLs.
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = function(options) {
|
||||
})
|
||||
})
|
||||
|
||||
;['/s/api/v1/image/*'].forEach(function(route) {
|
||||
;['/s/image/*'].forEach(function(route) {
|
||||
app.all(route, function(req, res) {
|
||||
proxy.web(req, res, {
|
||||
target: options.storagePluginImageUrl
|
||||
@@ -35,7 +35,7 @@ module.exports = function(options) {
|
||||
})
|
||||
})
|
||||
|
||||
;['/s/api/v1/apk/*'].forEach(function(route) {
|
||||
;['/s/apk/*'].forEach(function(route) {
|
||||
app.all(route, function(req, res) {
|
||||
proxy.web(req, res, {
|
||||
target: options.storagePluginApkUrl
|
||||
@@ -43,7 +43,7 @@ module.exports = function(options) {
|
||||
})
|
||||
})
|
||||
|
||||
;['/s/api/v1/*'].forEach(function(route) {
|
||||
;['/s/*'].forEach(function(route) {
|
||||
app.all(route, function(req, res) {
|
||||
proxy.web(req, res, {
|
||||
target: options.storageUrl
|
||||
|
||||
Reference in New Issue
Block a user