mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* Fix user_info test * Removing duplication and hardcoded protocol * Fix linting and update script * Removing hardcoded protocol * Add protocol to scripts * Fix C260117 * Enable screenshots for cloud tests * Update process-services-cloud-e2e.sh
32 lines
861 B
JavaScript
32 lines
861 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 = (PROXY_HOST_ADF || HOST);
|
|
let fallback = require('connect-history-api-fallback');
|
|
|
|
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})
|
|
}
|
|
}
|
|
};
|