forked from svrjs/svrjs
Update to SVR.JS 3.12.0
This commit is contained in:
parent
a63e1a893b
commit
19f7345762
5 changed files with 395 additions and 292 deletions
16
config.json
16
config.json
|
@ -3,7 +3,7 @@
|
||||||
"port": 80,
|
"port": 80,
|
||||||
"pubport": 80,
|
"pubport": 80,
|
||||||
"page404": "404.html",
|
"page404": "404.html",
|
||||||
"timestamp": 1692493855777,
|
"timestamp": 1701600932028,
|
||||||
"blacklist": [],
|
"blacklist": [],
|
||||||
"nonStandardCodes": [],
|
"nonStandardCodes": [],
|
||||||
"enableCompression": true,
|
"enableCompression": true,
|
||||||
|
@ -89,14 +89,22 @@
|
||||||
"dontCompress": [
|
"dontCompress": [
|
||||||
"/.*\\.ipxe$/",
|
"/.*\\.ipxe$/",
|
||||||
"/.*\\.img$/",
|
"/.*\\.img$/",
|
||||||
"/.*\\.iso$/"
|
"/.*\\.iso$/",
|
||||||
|
"/.*\\.png$/",
|
||||||
|
"/.*\\.jpg$/",
|
||||||
|
"/.*\\.webp$/"
|
||||||
],
|
],
|
||||||
"enableIPSpoofing": false,
|
"enableIPSpoofing": true,
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"sni": {},
|
"sni": {},
|
||||||
"disableNonEncryptedServer": false,
|
"disableNonEncryptedServer": false,
|
||||||
"disableToHTTPSRedirect": false,
|
"disableToHTTPSRedirect": false,
|
||||||
"enableETag": true,
|
"enableETag": true,
|
||||||
"disableUnusedWorkerTermination": false,
|
"disableUnusedWorkerTermination": false,
|
||||||
"rewriteDirtyURLs": false
|
"rewriteDirtyURLs": true,
|
||||||
|
"errorPages": [],
|
||||||
|
"useWebRootServerSideScript": true,
|
||||||
|
"exposeModsInErrorPages": true,
|
||||||
|
"disableTrailingSlashRedirects": false,
|
||||||
|
"environmentVariables": {}
|
||||||
}
|
}
|
||||||
|
|
37
index.html
37
index.html
|
@ -25,7 +25,7 @@
|
||||||
"port": 80,<br/>
|
"port": 80,<br/>
|
||||||
"pubport": 80,<br/>
|
"pubport": 80,<br/>
|
||||||
"page404": "404.html",<br/>
|
"page404": "404.html",<br/>
|
||||||
"timestamp": 1680954429282,<br/>
|
"timestamp": 1701600932028,<br/>
|
||||||
"blacklist": [],<br/>
|
"blacklist": [],<br/>
|
||||||
"nonStandardCodes": [],<br/>
|
"nonStandardCodes": [],<br/>
|
||||||
"enableCompression": true,<br/>
|
"enableCompression": true,<br/>
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
"exposeServerVersion": true,<br/>
|
"exposeServerVersion": true,<br/>
|
||||||
"disableServerSideScriptExpose": true,<br/>
|
"disableServerSideScriptExpose": true,<br/>
|
||||||
"rewriteMap": [<br/>
|
"rewriteMap": [<br/>
|
||||||
|
{<br/>
|
||||||
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/>
|
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/>
|
||||||
"replacements": [<br/>
|
"replacements": [<br/>
|
||||||
{<br/>
|
{<br/>
|
||||||
|
@ -104,23 +105,41 @@
|
||||||
"replacement": "/invoke500.svr"<br/>
|
"replacement": "/invoke500.svr"<br/>
|
||||||
}<br/>
|
}<br/>
|
||||||
]<br/>
|
]<br/>
|
||||||
}<br/> ],<br/>
|
}<br/>
|
||||||
|
],<br/>
|
||||||
"allowStatus": true,<br/>
|
"allowStatus": true,<br/>
|
||||||
"dontCompress": ["/.*\\.ipxe$/","/.*\\.img$/","/.*\\.iso$/"],<br/>
|
"dontCompress": [<br/>
|
||||||
"enableIPSpoofing": false,<br/>
|
"/.*\\.ipxe$/",<br/>
|
||||||
|
"/.*\\.img$/",<br/>
|
||||||
|
"/.*\\.iso$/",<br/>
|
||||||
|
"/.*\\.png$/",<br/>
|
||||||
|
"/.*\\.jpg$/",<br/>
|
||||||
|
"/.*\\.webp$/"<br/>
|
||||||
|
],<br/>
|
||||||
|
"enableIPSpoofing": true,<br/>
|
||||||
"secure": false,<br/>
|
"secure": false,<br/>
|
||||||
"sni": {},<br/>
|
"sni": {},<br/>
|
||||||
"disableNonEncryptedServer": false,<br/>
|
"disableNonEncryptedServer": false,<br/>
|
||||||
"disableToHTTPSRedirect": false<br/>
|
"disableToHTTPSRedirect": false,<br/>
|
||||||
|
"enableETag": true,<br/>
|
||||||
|
"disableUnusedWorkerTermination": false,<br/>
|
||||||
|
"rewriteDirtyURLs": true,<br/>
|
||||||
|
"errorPages": [],<br/>
|
||||||
|
"useWebRootServerSideScript": true,<br/>
|
||||||
|
"exposeModsInErrorPages": true,<br/>
|
||||||
|
"disableTrailingSlashRedirects": false,<br/>
|
||||||
|
"environmentVariables": {}<br/>
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
<p>Changes:</p>
|
<p>Changes:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>SVR.JS now sends configuration file saving request to one random good worker instead of all workers to prevent configuration file corruption.</li>
|
<li>Added trailing slash redirect support.</li>
|
||||||
<li>Fixed crashes due to destroyed HTTP/2 stream (Node.JS bug: <a href="https://github.com/nodejs/node/issues/24470">https://github.com/nodejs/node/issues/24470</a>)</li>
|
<li>Added new <i>config.json</i> property — <i>environmentVariables</i>.</li>
|
||||||
<li>Fixed language errors in HTTP error code descriptions, error console messages and the index page.</li>
|
<li>Replaces base 1000 size prefixes with base 1024 ones.</li>
|
||||||
<li>Updated the logo in the SVR.JS log viewer.</li>
|
<li>Invalid compression exclusion list regexes no longer crash SVR.JS.</li>
|
||||||
|
<li>Changed invalid regex error message.</li>
|
||||||
|
<li>Corrected language errors — replaced <i>recieve</i> with <i>receive</i>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="/tests.html">Tests</a><br/>
|
<a href="/tests.html">Tests</a><br/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.11.0 Licenses</title>
|
<title>SVR.JS 3.12.0 Licenses</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.11.0 Licenses</h1>
|
<h1>SVR.JS 3.12.0 Licenses</h1>
|
||||||
<h2>SVR.JS 3.11.0</h2>
|
<h2>SVR.JS 3.12.0</h2>
|
||||||
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
||||||
MIT License<br/>
|
MIT License<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
||||||
SOFTWARE.<br/>
|
SOFTWARE.<br/>
|
||||||
</div>
|
</div>
|
||||||
<h2>Packages used by SVR.JS 3.11.0 and utilities</h2>
|
<h2>Packages used by SVR.JS 3.12.0</h2>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="float: right;">License: MIT</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.11.0 Tests</title>
|
<title>SVR.JS 3.12.0 Tests</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,11 +12,11 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.11.0 Tests</h1>
|
<h1>SVR.JS 3.12.0 Tests</h1>
|
||||||
<h2>Directory</h2>
|
<h2>Directory (without trailing slash)</h2>
|
||||||
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
||||||
<h2>Directory (with query)</h2>
|
<h2>Directory (with query)</h2>
|
||||||
<iframe src="/testdir?query=value" width="50%" height="300px"></iframe>
|
<iframe src="/testdir/?query=value" width="50%" height="300px"></iframe>
|
||||||
<h2>Directory (personalized)</h2>
|
<h2>Directory (personalized)</h2>
|
||||||
<iframe src="/testdir/.personalized" width="50%" height="300px"></iframe>
|
<iframe src="/testdir/.personalized" width="50%" height="300px"></iframe>
|
||||||
<h2>404 Error</h2>
|
<h2>404 Error</h2>
|
||||||
|
|
Reference in a new issue