mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* travis precache * rb change * remove ut * add cache warm up * Prepare cache fix * add test * use env variabble to tag * use env to label stages * move lint step at start * use dist for e2e * upload dist in alfresco * modify permissions * travis script node * remove polyfills * revert some changes * fix demo shell run test * solve download * revert debatable gallery change
34 lines
902 B
JavaScript
34 lines
902 B
JavaScript
var PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
|
|
var HOST = process.env.URL_HOST_ADF;
|
|
|
|
let proxy = require('http-proxy-middleware');
|
|
|
|
let targetProxy = 'http://' + (PROXY_HOST_ADF || HOST);
|
|
let fallback = require('connect-history-api-fallback');
|
|
|
|
console.log('targetProxy');
|
|
|
|
module.exports = {
|
|
'port': 4200,
|
|
open: false,
|
|
server: {
|
|
middleware: {
|
|
1: proxy('/alfresco', {
|
|
target: targetProxy,
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
"^/alfresco/alfresco": ""
|
|
}
|
|
}),
|
|
2: proxy('/activiti-app', {
|
|
target: targetProxy,
|
|
changeOrigin: true,
|
|
"pathRewrite": {
|
|
"^/activiti-app/activiti-app": ""
|
|
}
|
|
}),
|
|
3: fallback({index: '/index.html', verbose: true})
|
|
}
|
|
}
|
|
};
|