improved "start:dist" script (#2369)

This commit is contained in:
Denys Vuika
2017-09-25 10:09:27 +01:00
committed by Maurizio Vitale
parent 70a38acbff
commit c9641da932
2 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
module.exports = {
"host": "0.0.0.0",
"port": 3000,
"dir": "./dist",
"spa": true,
"proxy": {
"/ecm/{p*}": {
"options": {
"uri": "http://0.0.0.0:8080/{p}"
}
},
"/bpm/{p*}": {
"options": {
"uri": "http://0.0.0.0:9999/{p}"
}
}
},
onResHeaders(headers) {
if (headers) {
const authHeader = headers['www-authenticate'];
if (authHeader) {
headers['www-authenticate'] = `x${authHeader}`;
}
}
}
}