@abtnode/router-provider 1.5.13 → 1.15.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/nginx/index.js +4 -2
- package/lib/www/404.html +21 -25
- package/lib/www/502.html +25 -29
- package/lib/www/5xx.html +25 -27
- package/lib/www/index.html +21 -25
- package/package.json +6 -6
package/lib/nginx/index.js
CHANGED
|
@@ -854,7 +854,7 @@ NginxProvider.check = async ({ configDir = '' } = {}) => {
|
|
|
854
854
|
if (nginxStatus.running && !nginxStatus.ownByABTNode) {
|
|
855
855
|
result.available = false;
|
|
856
856
|
result.error =
|
|
857
|
-
'seems a nginx daemon is already running on your machine, a controlled nginx is required by
|
|
857
|
+
'seems a nginx daemon is already running on your machine, a controlled nginx is required by Blocklet Server to work properly, please terminate the running nginx daemon before try again.';
|
|
858
858
|
|
|
859
859
|
return result;
|
|
860
860
|
}
|
|
@@ -896,7 +896,9 @@ NginxProvider.check = async ({ configDir = '' } = {}) => {
|
|
|
896
896
|
|
|
897
897
|
if (missingModules.length > 0) {
|
|
898
898
|
result.available = false;
|
|
899
|
-
result.error = `
|
|
899
|
+
result.error = `Blocklet Server depends on some modules of Nginx that are not compiled: ${missingModules.join(
|
|
900
|
+
', '
|
|
901
|
+
)}`;
|
|
900
902
|
return result;
|
|
901
903
|
}
|
|
902
904
|
|
package/lib/www/404.html
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>404 - Blocklet Server</title>
|
|
7
|
+
<style>
|
|
8
|
+
html {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
}
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
}
|
|
12
|
+
h1 {
|
|
13
|
+
color: #00c2c4;
|
|
14
|
+
font-size: 3.8rem;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</
|
|
19
|
-
|
|
20
|
-
<body>
|
|
21
|
-
<center>
|
|
22
|
-
<h1>404</h1>
|
|
23
|
-
<h2>
|
|
24
|
-
We can't find the page that you're looking for
|
|
25
|
-
</h2>
|
|
26
|
-
</center>
|
|
27
|
-
</body>
|
|
28
|
-
|
|
29
|
-
</html>
|
|
19
|
+
<body>
|
|
20
|
+
<center>
|
|
21
|
+
<h1>404</h1>
|
|
22
|
+
<h2>We can't find the page that you're looking for</h2>
|
|
23
|
+
</center>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
package/lib/www/502.html
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>502 - Blocklet Server</title>
|
|
7
|
+
<style>
|
|
8
|
+
html {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
}
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
}
|
|
12
|
+
h1 {
|
|
13
|
+
color: #00c2c4;
|
|
14
|
+
font-size: 3.8rem;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Bad gateway: Upstream Blocklet or Daemon service is not available!
|
|
25
|
-
</h2>
|
|
26
|
-
<div>
|
|
27
|
-
Checkout ABT Node Documentation: <a
|
|
28
|
-
href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
|
|
29
|
-
</div>
|
|
30
|
-
</center>
|
|
31
|
-
</body>
|
|
32
|
-
|
|
33
|
-
</html>
|
|
19
|
+
<body>
|
|
20
|
+
<center>
|
|
21
|
+
<h1>Error 502</h1>
|
|
22
|
+
<h2>Bad gateway: Upstream Blocklet or Daemon service is not available!</h2>
|
|
23
|
+
<div>
|
|
24
|
+
Checkout Blocklet Server Documentation:
|
|
25
|
+
<a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
|
|
26
|
+
</div>
|
|
27
|
+
</center>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
package/lib/www/5xx.html
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Error - Blocklet Server</title>
|
|
7
|
+
<style>
|
|
8
|
+
html {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
}
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
}
|
|
12
|
+
h1 {
|
|
13
|
+
color: #00c2c4;
|
|
14
|
+
font-size: 3.8rem;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div>
|
|
25
|
-
Checkout ABT Node Documentation: <a
|
|
26
|
-
href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
|
|
27
|
-
</div>
|
|
28
|
-
</center>
|
|
29
|
-
</body>
|
|
30
|
-
|
|
31
|
-
</html>
|
|
19
|
+
<body>
|
|
20
|
+
<center>
|
|
21
|
+
<h1>Oops!</h1>
|
|
22
|
+
<h2>Something went wrong</h2>
|
|
23
|
+
<div>
|
|
24
|
+
Checkout Blocklet Server Documentation:
|
|
25
|
+
<a href="https://docs.arcblock.io/en/abtnode/">https://docs.arcblock.io/en/abtnode/</a>
|
|
26
|
+
</div>
|
|
27
|
+
</center>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
package/lib/www/index.html
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>404 - Blocklet Server</title>
|
|
7
|
+
<style>
|
|
8
|
+
html {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
}
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
}
|
|
12
|
+
h1 {
|
|
13
|
+
color: #00c2c4;
|
|
14
|
+
font-size: 3.8rem;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</
|
|
19
|
-
|
|
20
|
-
<body>
|
|
21
|
-
<center>
|
|
22
|
-
<h1>404</h1>
|
|
23
|
-
<h2>
|
|
24
|
-
We can't find the page that you're looking for
|
|
25
|
-
</h2>
|
|
26
|
-
</center>
|
|
27
|
-
</body>
|
|
28
|
-
|
|
29
|
-
</html>
|
|
19
|
+
<body>
|
|
20
|
+
<center>
|
|
21
|
+
<h1>404</h1>
|
|
22
|
+
<h2>We can't find the page that you're looking for</h2>
|
|
23
|
+
</center>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.17",
|
|
4
4
|
"description": "Routing engine implementations for abt node",
|
|
5
5
|
"author": "polunzh <polunzh@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ArcBlock/abt-node#readme",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"url": "https://github.com/ArcBlock/abt-node/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/constant": "1.
|
|
36
|
-
"@abtnode/logger": "1.
|
|
37
|
-
"@abtnode/router-templates": "1.
|
|
38
|
-
"@abtnode/util": "1.
|
|
35
|
+
"@abtnode/constant": "1.15.17",
|
|
36
|
+
"@abtnode/logger": "1.15.17",
|
|
37
|
+
"@abtnode/router-templates": "1.15.17",
|
|
38
|
+
"@abtnode/util": "1.15.17",
|
|
39
39
|
"axios": "^0.21.4",
|
|
40
40
|
"debug": "^4.3.2",
|
|
41
41
|
"find-process": "^1.4.3",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"fs-extra": "^10.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "22715c3ea74d0230f3413162a17f491614b6735a"
|
|
56
56
|
}
|