1
0
Fork 0
forked from svrjs/svrjs
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs/index.html

102 lines
3.1 KiB
HTML
Raw Normal View History

2023-07-29 20:32:17 +02:00
<!DOCTYPE html>
<html>
<head>
<title>SVR.JS Nightly-GitMain</title>
2023-07-29 20:32:17 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<style>
body {
font-family: FreeSans, Helvetica, Tahoma, Arial, sans-serif;
text-align: center;
}
</style>
</head>
<body>
<h1>Welcome to SVR.JS Nightly-GitMain</h1>
<div style="background-color: #ffff00; border-color: #ff7f00; border-width: 5px; border-style: solid; padding: 5px; display: inline-block;">
<b style="font-size: 20pt">WARNING!</b><br/>
This version is only for test purposes and may be unstable.
</div>
2023-07-29 20:32:17 +02:00
<br/>
<img src="/logo.png" style="width: 256px;" />
<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>
2023-07-29 20:32:17 +02:00
<p>Default <i>config.json</i> looks like this:</p>
2024-03-03 15:53:04 +01:00
<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"
2023-07-29 20:32:17 +02:00
}
2024-03-03 15:53:04 +01:00
]
},
{
"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>
2023-07-29 20:32:17 +02:00
<p>Changes:</p>
2024-03-03 15:53:04 +01:00
<ul style="display: inline-block; margin: 0; padding: 0;">
<li><i>INSERT CHANGES THERE</i></li>
2023-07-29 20:32:17 +02:00
</ul>
2024-03-03 15:53:04 +01:00
<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>
2023-07-29 20:32:17 +02:00
<img src="/powered.png" />
</body>
</html>