aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/framework/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/framework/webpack.config.js')
-rw-r--r--sdnr/wt/odlux/framework/webpack.config.js47
1 files changed, 38 insertions, 9 deletions
diff --git a/sdnr/wt/odlux/framework/webpack.config.js b/sdnr/wt/odlux/framework/webpack.config.js
index ad5b4cc1b..5d0d8fc9a 100644
--- a/sdnr/wt/odlux/framework/webpack.config.js
+++ b/sdnr/wt/odlux/framework/webpack.config.js
@@ -43,6 +43,7 @@ module.exports = (env) => {
entry: {
app: [
+ "./run.ts",
"./app.tsx",
"./services",
"./components/objectDump",
@@ -180,7 +181,7 @@ module.exports = (env) => {
],
devServer: {
- public: "http://10.20.6.29:3100",
+ public: "http://localhost:3100",
contentBase: distPath,
compress: true,
@@ -198,35 +199,63 @@ module.exports = (env) => {
colors: true
},
proxy: {
+ "/about": {
+ // target: "http://10.20.6.29:48181",
+ target: "http://sdnr:8181",
+ secure: false
+ },
+ "/yang-schema/": {
+ target: "http://sdnr:8181",
+ secure: false
+ },
+ "/oauth/": {
+ // target: "https://10.20.35.188:30205",
+ target: "http://sdnr:8181",
+ secure: false
+ },
"/oauth2/": {
- target: "http://10.20.6.29:48181",
+ // target: "https://10.20.35.188:30205",
+ target: "http://sdnr:8181",
secure: false
},
"/database/": {
- target: "http://10.20.6.29:48181",
+ target: "http://sdnr:8181",
secure: false
},
"/restconf/": {
- target: "http://10.20.6.29:48181",
+ target: "http://sdnr:8181",
+ secure: false
+ },
+ "/rests/": {
+ target: "http://sdnr:8181",
secure: false
},
"/help/": {
- target: "http://10.20.6.29:48181",
+ target: "http://sdnr:8181",
secure: false
},
- "/about": {
- target: "http://10.20.6.29:48181",
+ "/about/": {
+ target: "http://sdnr:8181",
+ secure: false
+ },
+ "/tree/": {
+ target: "http://sdnr:8181",
secure: false
},
"/websocket": {
- target: "http://10.20.6.29:48181",
+ target: "http://sdnr:8181",
+ ws: true,
+ changeOrigin: true,
+ secure: false
+ },
+ "/apidoc": {
+ target: "http://sdnr:8181",
ws: true,
changeOrigin: true,
secure: false
}
}
}
-
}];
}