-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.js
74 lines (74 loc) · 2.1 KB
/
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
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
71
72
73
74
module.exports = {
aliases: {
"localhost": "127.0.0.1",
"www.example.com": "example.com"
},
redirects: {
"example.com": "www.example.com"
},
certs: {
default: {
type: "path",
cert: "certs/127.0.0.1.cert",
key: "certs/127.0.0.1.key"
},
"127.0.0.1": {
type: "path",
cert: "certs/127.0.0.1.cert",
key: "certs/127.0.0.1.key"
},
// "example.com": {
// type: "letsencrypt", // DO NOT REQUEST LET'S ENCRYPT CERTIFICATES FOR DOMAINS THAT YOU DO NOT OWN
// email: "admin@example.com" // TOO MANY FAILURES MAY RESULT IN A LET'S ENCRYPT BAN
// }
},
standard: [80],
ssl: [443],
servers: {
"80": {
"127.0.0.1": [
{
forceSSL: true
}
],
"example.com": [
{
location: "/root/example.com"
}
]
},
"443": {
"127.0.0.1": [
{
location: "/root/static",
regex: "^\/static.*"
},
{
mount: "/admin",
location: "web/admin",
regex: "^\/admin.*"
},
{
location: "/root/public/sad.group",
proxy: "https://jsonplaceholder.typicode.com/todos/1",
regex: "^\/todos.*",
rewrite: {
regex: "/[0-8]*$",
output: ""
},
changeOrigin: true,
secure: false,
ws: true
},
{
balance: ["http://s1.example.com", "http://s2.example.com"],
secure: false,
regex: "^\/balance.*"
},
{
proxy: "http://localhost:3000"
}
]
}
}
};