forked from svrjs/svrjs
Changed design of the default page
This commit is contained in:
parent
897c080884
commit
8073f51730
1 changed files with 70 additions and 73 deletions
137
index.html
137
index.html
|
@ -22,83 +22,80 @@
|
||||||
<br/>
|
<br/>
|
||||||
<p>If you see this page that means that the server is working properly. You can further configure the server and replace <i>index.html</i> and <i>tests.html</i> pages with custom ones.</p>
|
<p>If you see this page that means that the server is working properly. You can further configure the server and replace <i>index.html</i> and <i>tests.html</i> pages with custom ones.</p>
|
||||||
<p>Default <i>config.json</i> looks like this:</p>
|
<p>Default <i>config.json</i> looks like this:</p>
|
||||||
<div style="background-color: #e0e0e0; padding: 5px; text-align: left; display: inline-block;">
|
<code style="background-color: #e0e0e0; padding: 5px; text-align: left; display: block; display: inline-block;">
|
||||||
<code>
|
<pre style="margin: 0.2em; white-space: pre-wrap;">{
|
||||||
{<br/>
|
"users": [],
|
||||||
"users": [],<br/>
|
"port": 80,
|
||||||
"port": 80,<br/>
|
"pubport": 80,
|
||||||
"pubport": 80,<br/>
|
"page404": "404.html",
|
||||||
"page404": "404.html",<br/>
|
"timestamp": 1701600932028,
|
||||||
"timestamp": 1701600932028,<br/>
|
"blacklist": [],
|
||||||
"blacklist": [],<br/>
|
"nonStandardCodes": [],
|
||||||
"nonStandardCodes": [],<br/>
|
"enableCompression": true,
|
||||||
"enableCompression": true,<br/>
|
"customHeaders": {},
|
||||||
"customHeaders": {},<br/>
|
"enableHTTP2": false,
|
||||||
"enableHTTP2": false,<br/>
|
"enableLogging": true,
|
||||||
"enableLogging": true,<br/>
|
"enableDirectoryListing": true,
|
||||||
"enableDirectoryListing": true,<br/>
|
"enableDirectoryListingWithDefaultHead": false,
|
||||||
"enableDirectoryListingWithDefaultHead": false,<br/>
|
"serverAdministratorEmail": "[no contact information]",
|
||||||
"serverAdministratorEmail": "[no contact information]",<br/>
|
"stackHidden": false,
|
||||||
"stackHidden": false,<br/>
|
"enableRemoteLogBrowsing": false,
|
||||||
"enableRemoteLogBrowsing": false,<br/>
|
"exposeServerVersion": true,
|
||||||
"exposeServerVersion": true,<br/>
|
"disableServerSideScriptExpose": true,
|
||||||
"disableServerSideScriptExpose": true,<br/>
|
"rewriteMap": [
|
||||||
"rewriteMap": [<br/>
|
{
|
||||||
{<br/>
|
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
|
||||||
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/>
|
"replacements": [
|
||||||
"replacements": [<br/>
|
{
|
||||||
{<br/>
|
"regex": "/^\\/serverSideScript\\.js($|[#?])/",
|
||||||
"regex": "/^\\/serverSideScript\\.js($|[#?])/",<br/>
|
"replacement": "/NONEXISTENT_PAGE$1"
|
||||||
"replacement": "/NONEXISTENT_PAGE$1"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/^\\/testdir_rewritten($|[\\/?#])/",<br/>
|
|
||||||
"replacement": "/testdir$1"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
}<br/>
|
|
||||||
],<br/>
|
|
||||||
"allowStatus": true,<br/>
|
|
||||||
"dontCompress": [<br/>
|
|
||||||
"/.*\\.ipxe$/",<br/>
|
|
||||||
"/.*\\.img$/",<br/>
|
|
||||||
"/.*\\.iso$/",<br/>
|
|
||||||
"/.*\\.png$/",<br/>
|
|
||||||
"/.*\\.jpg$/",<br/>
|
|
||||||
"/.*\\.webp$/"<br/>
|
|
||||||
],<br/>
|
|
||||||
"enableIPSpoofing": false,<br/>
|
|
||||||
"secure": false,<br/>
|
|
||||||
"sni": {},<br/>
|
|
||||||
"disableNonEncryptedServer": 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/>
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",
|
||||||
|
"replacements": [
|
||||||
|
{
|
||||||
|
"regex": "/^\\/testdir_rewritten($|[\\/?#])/",
|
||||||
|
"replacement": "/testdir$1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"allowStatus": true,
|
||||||
|
"dontCompress": [
|
||||||
|
"/.*\\.ipxe$/",
|
||||||
|
"/.*\\.img$/",
|
||||||
|
"/.*\\.iso$/",
|
||||||
|
"/.*\\.png$/",
|
||||||
|
"/.*\\.jpg$/",
|
||||||
|
"/.*\\.webp$/"
|
||||||
|
],
|
||||||
|
"enableIPSpoofing": false,
|
||||||
|
"secure": false,
|
||||||
|
"sni": {},
|
||||||
|
"disableNonEncryptedServer": false,
|
||||||
|
"disableToHTTPSRedirect": false,
|
||||||
|
"enableETag": true,
|
||||||
|
"disableUnusedWorkerTermination": false,
|
||||||
|
"rewriteDirtyURLs": true,
|
||||||
|
"errorPages": [],
|
||||||
|
"useWebRootServerSideScript": true,
|
||||||
|
"exposeModsInErrorPages": true,
|
||||||
|
"disableTrailingSlashRedirects": false,
|
||||||
|
"environmentVariables": {}
|
||||||
|
}</pre>
|
||||||
</code>
|
</code>
|
||||||
</div>
|
|
||||||
<p>Changes:</p>
|
<p>Changes:</p>
|
||||||
<ul>
|
<ul style="display: inline-block; margin: 0; padding: 0;">
|
||||||
<li><i>INSERT CHANGES THERE</i></li>
|
<li><i>INSERT CHANGES THERE</i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<p>
|
||||||
<a href="/tests.html">Tests</a><br/>
|
<a href="/tests.html">Tests</a><br/>
|
||||||
<a href="/licenses">Licenses</a><br/>
|
<a href="/licenses/">Licenses</a><br/>
|
||||||
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
||||||
<a href="https://svrjs.org/docs">More Information</a>
|
<a href="https://svrjs.org/docs">SVR.JS documentation</a>
|
||||||
<br/>
|
</p>
|
||||||
<br/>
|
|
||||||
<img src="/powered.png" />
|
<img src="/powered.png" />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Reference in a new issue