1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00

Added proxy against UDS

This commit is contained in:
Adolfo Gómez García 2018-05-08 23:34:18 +02:00
parent 02aa10471f
commit 12539a6ca9
2 changed files with 23 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"license": "BSD-3-Clause",
"scripts": {
"ng": "ng",
"start": "ng serve --host 172.27.0.1 --port 9000",
"start": "ng serve --host 172.27.0.1 --port 9000 --proxy-config proxy.conf.json",
"build": "ng build --prod --output-hashing=none --aot --deleteOutputPath --build-optimizer --deploy-url static",
"test": "ng test",
"lint": "ng lint",

22
proxy.conf.json Normal file
View File

@ -0,0 +1,22 @@
{
"/rest": {
"target": {
"host": "172.27.0.1",
"protocol": "http:",
"port": 8000
},
"secure": false,
"changeOrigin": true,
"logLevel": "info"
},
"/info": {
"target": {
"host": "172.27.0.1",
"protocol": "http:",
"port": 8000
},
"secure": false,
"changeOrigin": true,
"logLevel": "info"
}
}