forked from holyful/fdserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js.sample
72 lines (60 loc) · 1.13 KB
/
config.js.sample
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
65
66
67
68
69
70
exports = module.exports = {
// port: 80,
logger: 'none',
hosts: {
'webroot': {
root: '/Users/bencode/webroot'
},
/**
* static_site
*/
/*
'assets.1688.com': {
root: '/home/bencode/work/gw3/static_site',
app: '/home/bencode/work/gw3/site_data',
merge: true,
remote: 'http://110.75.196.70'
},
*/
/**
* style示例
*/
'style.c.aliimg.com': {
root: '/Users/bencode/webroot/styles',
//merge: true,
rewrite: [
// app/offer 的less支持
{
from: /^\/app\/offer\/(.*)\.css\b/,
to: 'butterfly/$1.less'
},
{
from: '^/app/offer/(.*)$',
to: 'styleoffer/$1'
},
// app/butterfly的less支持
{
from: /^\/app\/butterfly\/(.*)\.css\b/,
to: 'butterfly/$1.less'
},
{
from: '^/app/butterfly/(.*)$',
to: 'butterfly/$1'
},
// 其他文件代理到线上
{
from: '^(.*)$',
to: 'http://110.75.196.23$1'
}
],
// concatSplit: true
},
/**
* style combine 配置
*/
'cdn.c.aliimg.com': {
//concatSplit: true
}
}
};
// require('./lib/ext/app').prepare(exports.hosts['assets.1688.com']);