forked from georchestra/mapstore2-cadastrapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proxyConfig.js
64 lines (61 loc) · 1.71 KB
/
proxyConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// this file contains configurations for dev proxy
const DEV_PROTOCOL = "http";
const DEV_HOST = "localhost:8080";
const cookie = "JSESSIONID=node0fieai9vvjzcv1uhtlkbbmp7jt4043608.node0";
module.exports = {
"/rest": {
target: `${DEV_PROTOCOL}://${DEV_HOST}/mapstore`,
secure: false,
headers: {
host: `${DEV_HOST}`
}
},
"/pdf": {
target: `${DEV_PROTOCOL}://${DEV_HOST}/mapstore`,
secure: false,
headers: {
host: `${DEV_HOST}`
}
},
"/mapstore/pdf": {
target: `${DEV_PROTOCOL}://${DEV_HOST}`,
secure: false,
headers: {
host: `${DEV_HOST}`
}
},
"/proxy": {
target: `${DEV_PROTOCOL}://${DEV_HOST}/mapstore/`,
secure: false
},
"/mapstore/proxy": {
target: `${DEV_PROTOCOL}://${DEV_HOST}`,
secure: false
},
"/geonetwork": {
target: `${DEV_PROTOCOL}://${DEV_HOST}/geonetwork`,
secure: false,
headers: {
host: `${DEV_HOST}`
}
},
"/header": {
target: `${DEV_PROTOCOL}://${DEV_HOST}`,
secure: false,
headers: {
host: `${DEV_HOST}`
}
},
"/cadastrapp": {
target: `https://georchestra.geo-solutions.it`,
secure: false,
headers: {
host: `georchestra.geo-solutions.it`
},
onProxyReq: function(proxyReq) {
proxyReq.setHeader("Cookie",
// "JSESSIONID=" + ProxySession[buildType].JSESSIONID + ";msa=" + ProxySession[buildType].msa + ";msa_rmc=" + ProxySession[buildType].msa_rmc + ";msa_rmc_disabled=" + ProxySession[buildType].msa_rmc
cookie);
}
}
};