Create wt-odlux directory
[ccsdk/features.git] / sdnr / wt / odlux / proxy.conf.js
1 /**
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt odlux
4  * =================================================================================================
5  * Copyright (C) 2021 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18
19 module.exports = {
20   "/about": {
21     target: "http://sdncweb:8080",
22     secure: false
23   },
24   "/yang-schema/": {
25     target: "http://sdncweb:8080",
26     secure: false
27   },
28   "/oauth/": {
29     target: "http://sdncweb:8080",
30     secure: false
31   },
32   "/database/": {
33     target: "http://sdncweb:8080",
34     secure: false
35   },
36   "/restconf/": {
37     target: "http://sdncweb:8080",
38     secure: false
39   },
40   "/rests/": {
41     target: "http://sdncweb:8080",
42     secure: false
43   },
44   "/userdata": {
45     target: "http://sdncweb:8080",
46     secure: false
47   },
48   "/userdata/": {
49     target: "http://sdncweb:8080",
50     secure: false
51   },
52   "/help/": {
53     target: "http://sdncweb:8080",
54     secure: false
55   },
56   "/about/": {
57     target: "http://sdncweb:8080",
58     secure: false
59   },
60   "/tree/": {
61     target: "http://sdncweb:8080",
62     secure: false
63   },
64   "/sitedoc/": {
65     target: "http://sdncweb:8080",
66     secure: false
67   },
68   "/topology/": {
69     target: "http://sdncweb:8080",
70     secure: false
71   },
72
73   "/websocket": {
74     target: "http://sdncweb:8080",
75     ws: true,
76     changeOrigin: true,
77     secure: false
78   },
79   "/apidoc": {
80     target: "http://sdncweb:8080",
81     ws: true,
82     changeOrigin: true,
83     secure: false
84   },
85   "/tiles/": {
86     target: "http://sdncweb:8080",
87     headers: {
88       "Connection": "keep-alive"
89     },
90     secure: false
91   },
92   "/swagger/": {
93     target: "http://swagger.t1.lab.osn-lab.com",
94     secure: false,
95     pathRewrite(pathname) {
96       return pathname.replace(/^\/swagger/, '/');
97     }
98   },
99   "/electromagnetic-field/": {
100     target: "http://sdncweb:8080",
101     ws: true,
102     changeOrigin: true,
103     secure: false
104   },
105 }
106