-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.js
61 lines (48 loc) · 1.26 KB
/
config.sample.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
module.exports = {
port: 3100,
sites: [
{
host: 'www.example.com',
protocol: 'https:',
origin: 'https://bucket-foo.somecloud.com',
originHeaders: {
Host: 'www.example.com'
},
kasha: 'http://localhost:3000',
kashaHeaders: {
token: 'aaaaaaaa'
},
removeQueryString: true,
assetExtensions: ['.js', '.css', '.jpg', '.jpeg', '.png', '.gif', '.ico', '.eot', '.ttf', '.woff', '.woff2', '.svg', '.svgz', '.txt'],
virtualPathMapping: [
['/:project/*', '/$1/index.html'],
['*', '/index.html']
]
},
{
host: 'localhost:3100',
protocol: 'http:',
origin: 'http://localhost:8080',
kasha: 'http://localhost:3000',
removeQueryString: true,
assetExtensions: ['.js', '.css', '.jpg', '.jpeg', '.png', '.gif', '.ico', '.eot', '.ttf', '.woff', '.woff2', '.svg', '.svgz', '.txt'],
virtualPathMapping: [
['*', '/index.html']
]
}
],
// store sites in mongodb instead of using 'sites' config
/*
sitesStore: {
url: 'mongodb://localhost:27017',
database: 'kasha-proxy',
options: {
poolSize: 10
}
},
*/
sentry: {
dsn: ''
},
loglevel: 'debug' // debug, info, warning, error, fatal
}