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
143
index.html
143
index.html
|
@ -22,83 +22,80 @@
|
|||
<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>Default <i>config.json</i> looks like this:</p>
|
||||
<div style="background-color: #e0e0e0; padding: 5px; text-align: left; display: inline-block;">
|
||||
<code>
|
||||
{<br/>
|
||||
"users": [],<br/>
|
||||
"port": 80,<br/>
|
||||
"pubport": 80,<br/>
|
||||
"page404": "404.html",<br/>
|
||||
"timestamp": 1701600932028,<br/>
|
||||
"blacklist": [],<br/>
|
||||
"nonStandardCodes": [],<br/>
|
||||
"enableCompression": true,<br/>
|
||||
"customHeaders": {},<br/>
|
||||
"enableHTTP2": false,<br/>
|
||||
"enableLogging": true,<br/>
|
||||
"enableDirectoryListing": true,<br/>
|
||||
"enableDirectoryListingWithDefaultHead": false,<br/>
|
||||
"serverAdministratorEmail": "[no contact information]",<br/>
|
||||
"stackHidden": false,<br/>
|
||||
"enableRemoteLogBrowsing": false,<br/>
|
||||
"exposeServerVersion": true,<br/>
|
||||
"disableServerSideScriptExpose": true,<br/>
|
||||
"rewriteMap": [<br/>
|
||||
{<br/>
|
||||
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/>
|
||||
"replacements": [<br/>
|
||||
{<br/>
|
||||
"regex": "/^\\/serverSideScript\\.js($|[#?])/",<br/>
|
||||
"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/>
|
||||
<code style="background-color: #e0e0e0; padding: 5px; text-align: left; display: block; display: inline-block;">
|
||||
<pre style="margin: 0.2em; white-space: pre-wrap;">{
|
||||
"users": [],
|
||||
"port": 80,
|
||||
"pubport": 80,
|
||||
"page404": "404.html",
|
||||
"timestamp": 1701600932028,
|
||||
"blacklist": [],
|
||||
"nonStandardCodes": [],
|
||||
"enableCompression": true,
|
||||
"customHeaders": {},
|
||||
"enableHTTP2": false,
|
||||
"enableLogging": true,
|
||||
"enableDirectoryListing": true,
|
||||
"enableDirectoryListingWithDefaultHead": false,
|
||||
"serverAdministratorEmail": "[no contact information]",
|
||||
"stackHidden": false,
|
||||
"enableRemoteLogBrowsing": false,
|
||||
"exposeServerVersion": true,
|
||||
"disableServerSideScriptExpose": true,
|
||||
"rewriteMap": [
|
||||
{
|
||||
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
|
||||
"replacements": [
|
||||
{
|
||||
"regex": "/^\\/serverSideScript\\.js($|[#?])/",
|
||||
"replacement": "/NONEXISTENT_PAGE$1"
|
||||
}
|
||||
</code>
|
||||
</div>
|
||||
]
|
||||
},
|
||||
{
|
||||
"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>
|
||||
<p>Changes:</p>
|
||||
<ul>
|
||||
<ul style="display: inline-block; margin: 0; padding: 0;">
|
||||
<li><i>INSERT CHANGES THERE</i></li>
|
||||
</ul>
|
||||
<br/>
|
||||
<a href="/tests.html">Tests</a><br/>
|
||||
<a href="/licenses">Licenses</a><br/>
|
||||
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
||||
<a href="https://svrjs.org/docs">More Information</a>
|
||||
<br/>
|
||||
<br/>
|
||||
<p>
|
||||
<a href="/tests.html">Tests</a><br/>
|
||||
<a href="/licenses/">Licenses</a><br/>
|
||||
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
||||
<a href="https://svrjs.org/docs">SVR.JS documentation</a>
|
||||
</p>
|
||||
<img src="/powered.png" />
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in a new issue