Merge pull request #3183 from vincent99/master

Proxy bundled drivers
This commit is contained in:
Westly Wright 2019-08-02 11:53:37 -07:00 committed by GitHub
commit dbef68eb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -74,6 +74,7 @@ module.exports = function(app, options) {
'Version': '/version',
'Apiui': '/api-ui',
'Samlauth': '/v1-saml',
'Drivers': '/assets/rancher-ui-driver-*',
}
app.use('/', function(req, res, next) {
@ -95,7 +96,7 @@ module.exports = function(app, options) {
}
// include root path in proxied request
req.url = path.join(base, req.url);
req.url = req.originalUrl;
req.headers['X-Forwarded-Proto'] = req.protocol;
// don't include the original host header

2
vendor/icons vendored

@ -1 +1 @@
Subproject commit dc7c438544167077ea087bd594921c0d12e7b182
Subproject commit 3781f899f1f430fa7af78642e89055d4da2695db