Fix ng serve error message: refector proxy.conf.json

This commit is contained in:
phil 2024-02-28 12:35:25 +05:30
parent 31b532e464
commit 94c02d17f5

View file

@ -1,38 +1,29 @@
{ [
"/static": { {
"target": "http://127.0.0.1:5000", "context": [
"secure": false "/static",
}, "/gj",
"/gj": { "/openapi.json",
"/docs",
"/api"
],
"target": "http://127.0.0.1:5000", "target": "http://127.0.0.1:5000",
"secure": false, "secure": false,
"ws": true "ws": true
}, },
"/sched": { {
"target": "http://127.0.0.1:8000", "context": [
"secure": false "/sched",
}, "/_sched"
"/_sched": { ],
"target": "http://127.0.0.1:8000", "target": "http://127.0.0.1:8000",
"secure": false, "secure": false,
"ws": true "ws": true
}, },
"/openapi.json": { {
"target": "http://127.0.0.1:5000", "context": [
"secure": false, "/static/tiles"
"ws": true ],
},
"/docs": {
"target": "http://127.0.0.1:5000",
"secure": false,
"ws": true
},
"/api": {
"target": "http://127.0.0.1:5000",
"secure": false,
"ws": true
},
"/static/tiles": {
"target": "/home/phil/gisaf_misc/map/tiles", "target": "/home/phil/gisaf_misc/map/tiles",
"secure": false, "secure": false,
"changeOrigin": true, "changeOrigin": true,
@ -40,8 +31,11 @@
"^/static/tiles" : "" "^/static/tiles" : ""
} }
}, },
"/terrain": { {
"context": [
"/terrain"
],
"target": "http://127.0.0.1:8899", "target": "http://127.0.0.1:8899",
"secure": false "secure": false
} }
} ]