-
Notifications
You must be signed in to change notification settings - Fork 1
/
proxy-config.js
39 lines (39 loc) · 1.03 KB
/
proxy-config.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
module.exports = {
'/geonetwork': {
target: 'https://www.geocat.ch',
secure: true,
logLevel: 'debug',
changeOrigin: true,
cookiePathRewrite: {
'/geonetwork': '/',
},
},
// this provides a parameter-based proxy to easily work around CORS issues
// use with: /dev-proxy?http://where_to_proxy.com/bla?abc
'/dev-proxy': {
target: 'http://invalidhostname',
secure: false,
ignorePath: true,
changeOrigin: true,
router: (req) => decodeURIComponent(req._parsedUrl.query),
},
'/datafeeder': {
target: 'http://localhost:8181',
secure: true,
logLevel: 'debug',
changeOrigin: true,
cookiePathRewrite: {
'/datafeeder': '/',
},
headers: {
'sec-roles':
'ROLE_SUPERUSER;ROLE_GN_ADMIN;ROLE_ADMINISTRATOR;ROLE_USER;ROLE_MAPSTORE_ADMIN',
'sec-org': 'myOrg',
'sec-username': 'testadmin',
'sec-fetch-user': '?1',
'sec-proxy': 'true',
referer: 'https://georchestra-127-0-1-1.traefik.me/',
'sec-orgname': 'myOrg',
},
},
}