Skip to content

Commit 678bd88

Browse files
authored
Merge branch 'develop' into disable-must-staple
Signed-off-by: Zoey <[email protected]>
2 parents 0974d56 + b091ad0 commit 678bd88

File tree

7 files changed

+3
-24
lines changed

7 files changed

+3
-24
lines changed

backend/schema/components/stream-object.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"incoming_port": {
2020
"type": "string",
21-
"pattern": "^(?!80$|81$|91$|443$)([0-9]+|[0-9]+-[0-9]+)$",
21+
"pattern": "^(?!80$|443$)([0-9]+|[0-9]+-[0-9]+)$",
2222
"maxLength": 11
2323
},
2424
"forwarding_host": {

backend/templates/dead_host.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include conf.d/include/always.conf;
1717
include conf.d/include/always.conf;
1818
root /html/404deadpage;
1919
error_page 404 /404deadpage.html;
20-
return 404;
20+
try_files $uri =404;
2121
}
2222
{%- endif %}
2323

backend/templates/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ server {
2828
include conf.d/include/always.conf;
2929
root /html/404deadpage;
3030
error_page 404 /404deadpage.html;
31-
return 404;
31+
try_files $uri =404;
3232
}
3333
{%- endif %}
3434

rootfs/html/404deadpage/404deadpage.html

-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<title>Dead Host</title>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<meta name="application-name" content="NPMplus" />
8-
<meta name="author" content="ZoeyVid" />
9-
<meta name="description" content="Dead Host Page of NPMplus" />
10-
<meta name="keywords" content="NPMplus, dead, 404" />
11-
<!-- TODO: Icon -->
12-
<link rel="icon" type="image/webp" href="/favicon.webp" />
137
</head>
148
<body>
159
<style>
@@ -85,6 +79,5 @@
8579
<div id="box">
8680
<h1>Dead Host</h1>
8781
</div>
88-
<p id="notice">Powered by <a href="https://github.com/ZoeyVid/NPMplus">NPMplus</a></p>
8982
</body>
9083
</html>

rootfs/html/dead/index.html

-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<title>Dead Host</title>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<meta name="application-name" content="NPMplus" />
8-
<meta name="author" content="ZoeyVid" />
9-
<meta name="description" content="Dead Host Page of NPMplus" />
10-
<meta name="keywords" content="NPMplus, dead, 404" />
11-
<!-- TODO: Icon -->
12-
<link rel="icon" type="image/webp" href="/favicon.webp" />
137
</head>
148
<body>
159
<style>
@@ -85,6 +79,5 @@
8579
<div id="box">
8680
<h1>Dead Host</h1>
8781
</div>
88-
<p id="notice">Powered by <a href="https://github.com/ZoeyVid/NPMplus">NPMplus</a></p>
8982
</body>
9083
</html>

rootfs/html/fancyindex/footer.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
</div>
2-
<p id="notice">Powered by <a href="https://github.com/ZoeyVid/NPMplus">NPMplus</a></p>
32
<script>
43
var input = document.createElement("input");
54
input.id = "search";

rootfs/html/fancyindex/header.html

-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<title>Directory index</title>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<meta name="application-name" content="NPMplus" />
8-
<meta name="author" content="ZoeyVid" />
9-
<meta name="description" content="Directory index of NPMplus" />
10-
<meta name="keywords" content="NPMplus, default" />
11-
<!-- TODO: Icon -->
12-
<link rel="icon" type="image/webp" href="/fancyindex/favicon.webp" />
137
</head>
148
<body>
159
<style>

0 commit comments

Comments
 (0)