1
0
Fork 0
forked from svrjs/svrjs

Changed design of the default page

This commit is contained in:
Dorian Niemiec 2024-03-03 15:53:04 +01:00
parent 897c080884
commit 8073f51730

View file

@ -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": [],
&nbsp;&nbsp;"users": [],<br/> "port": 80,
&nbsp;&nbsp;"port": 80,<br/> "pubport": 80,
&nbsp;&nbsp;"pubport": 80,<br/> "page404": "404.html",
&nbsp;&nbsp;"page404": "404.html",<br/> "timestamp": 1701600932028,
&nbsp;&nbsp;"timestamp": 1701600932028,<br/> "blacklist": [],
&nbsp;&nbsp;"blacklist": [],<br/> "nonStandardCodes": [],
&nbsp;&nbsp;"nonStandardCodes": [],<br/> "enableCompression": true,
&nbsp;&nbsp;"enableCompression": true,<br/> "customHeaders": {},
&nbsp;&nbsp;"customHeaders": {},<br/> "enableHTTP2": false,
&nbsp;&nbsp;"enableHTTP2": false,<br/> "enableLogging": true,
&nbsp;&nbsp;"enableLogging": true,<br/> "enableDirectoryListing": true,
&nbsp;&nbsp;"enableDirectoryListing": true,<br/> "enableDirectoryListingWithDefaultHead": false,
&nbsp;&nbsp;"enableDirectoryListingWithDefaultHead": false,<br/> "serverAdministratorEmail": "[no contact information]",
&nbsp;&nbsp;"serverAdministratorEmail": "[no contact information]",<br/> "stackHidden": false,
&nbsp;&nbsp;"stackHidden": false,<br/> "enableRemoteLogBrowsing": false,
&nbsp;&nbsp;"enableRemoteLogBrowsing": false,<br/> "exposeServerVersion": true,
&nbsp;&nbsp;"exposeServerVersion": true,<br/> "disableServerSideScriptExpose": true,
&nbsp;&nbsp;"disableServerSideScriptExpose": true,<br/> "rewriteMap": [
&nbsp;&nbsp;"rewriteMap": [<br/> {
&nbsp;&nbsp;&nbsp;&nbsp;{<br/> "definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/> "replacements": [
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacements": [<br/> {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br/> "regex": "/^\\/serverSideScript\\.js($|[#?])/",
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"regex": "/^\\/serverSideScript\\.js($|[#?])/",<br/> "replacement": "/NONEXISTENT_PAGE$1"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacement": "/NONEXISTENT_PAGE$1"<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>
&nbsp;&nbsp;&nbsp;&nbsp;},<br/>
&nbsp;&nbsp;&nbsp;&nbsp;{<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacements": [<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"regex": "/^\\/testdir_rewritten($|[\\/?#])/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacement": "/testdir$1"<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>
&nbsp;&nbsp;&nbsp;&nbsp;}<br/>
&nbsp;&nbsp;],<br/>
&nbsp;&nbsp;"allowStatus": true,<br/>
&nbsp;&nbsp;"dontCompress": [<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.ipxe$/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.img$/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.iso$/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.png$/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.jpg$/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"/.*\\.webp$/"<br/>
&nbsp;&nbsp;],<br/>
&nbsp;&nbsp;"enableIPSpoofing": false,<br/>
&nbsp;&nbsp;"secure": false,<br/>
&nbsp;&nbsp;"sni": {},<br/>
&nbsp;&nbsp;"disableNonEncryptedServer": false,<br/>
&nbsp;&nbsp;"disableToHTTPSRedirect": false,<br/>
&nbsp;&nbsp;"enableETag": true,<br/>
&nbsp;&nbsp;"disableUnusedWorkerTermination": false,<br/>
&nbsp;&nbsp;"rewriteDirtyURLs": true,<br/>
&nbsp;&nbsp;"errorPages": [],<br/>
&nbsp;&nbsp;"useWebRootServerSideScript": true,<br/>
&nbsp;&nbsp;"exposeModsInErrorPages": true,<br/>
&nbsp;&nbsp;"disableTrailingSlashRedirects": false,<br/>
&nbsp;&nbsp;"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>