2024-09-14 16:23:49 +02:00
<h1>Welcome to <%= name %> <%= version %></h1>
<% if (version.indexOf("Nightly-") == 0) { %>
<div class="warning">
<b style="font-size: 26px">WARNING!</b><br />
This version is only for test purposes and may be unstable.
</div>
<br />
<% } %>
<br />
<img src="/logo.png" class="logo" />
<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>
<code class="example-configuration">
<pre>{
2023-07-29 20:32:17 +02:00
"users": [],
"port": 80,
"pubport": 80,
"page404": "404.html",
2024-03-03 21:20:09 +01:00
"timestamp": 1709477722479,
2023-07-29 20:32:17 +02:00
"blacklist": [],
"nonStandardCodes": [],
"enableCompression": true,
"customHeaders": {},
"enableHTTP2": false,
"enableLogging": true,
"enableDirectoryListing": true,
"enableDirectoryListingWithDefaultHead": false,
"serverAdministratorEmail": "[no contact information]",
"stackHidden": false,
2023-09-10 11:13:23 +02:00
"enableRemoteLogBrowsing": false,
2023-07-29 20:32:17 +02:00
"exposeServerVersion": true,
2023-09-02 09:39:46 +02:00
"disableServerSideScriptExpose": true,
2023-07-29 20:32:17 +02:00
"rewriteMap": [
{
2023-09-02 09:39:46 +02:00
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
"replacements": [
{
"regex": "/^\\/serverSideScript\\.js($|[#?])/",
"replacement": "/NONEXISTENT_PAGE$1"
}
]
},
{
2024-02-07 00:57:09 +01:00
"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",
2023-07-29 20:32:17 +02:00
"replacements": [
{
2024-02-07 00:57:09 +01:00
"regex": "/^\\/testdir_rewritten($|[\\/?#])/",
"replacement": "/testdir$1"
2023-07-29 20:32:17 +02:00
}
]
}
],
"allowStatus": true,
2023-08-20 03:14:24 +02:00
"dontCompress": [
"/.*\\.ipxe$/",
2024-04-02 11:24:36 +02:00
"/.*\\.(?:jpe?g|png|bmp|tiff|jfif|gif|webp)$/",
"/.*\\.(?:[id]mg|iso|flp)$/",
"/.*\\.(?:zip|rar|bz2|[gb7x]z|lzma|tar)$/",
"/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/"
2023-08-20 03:14:24 +02:00
],
2024-02-11 21:37:26 +01:00
"enableIPSpoofing": false,
2023-07-29 20:32:17 +02:00
"secure": false,
"sni": {},
"disableNonEncryptedServer": false,
2023-08-20 03:14:24 +02:00
"disableToHTTPSRedirect": false,
"enableETag": true,
"disableUnusedWorkerTermination": false,
2023-12-03 16:19:34 +01:00
"rewriteDirtyURLs": true,
"errorPages": [],
"useWebRootServerSideScript": true,
"exposeModsInErrorPages": true,
"disableTrailingSlashRedirects": false,
2024-03-03 21:20:09 +01:00
"environmentVariables": {},
2024-08-07 06:23:42 +02:00
"allowDoubleSlashes": false,
"optOutOfStatisticsServer": false
2024-09-14 16:23:49 +02:00
}</pre>
</code>
<p>Changes:</p>
<ul>
<% changes.forEach((change) => {%>
<li><%= change %></li>
<% }); %>
</ul>
<p>
<a href="/tests.html">Tests</a><br />
<a href="/licenses/">Licenses</a><br />
<a href="/svrjsstatus.svr"><%= name %> status page</a><br />
<a href="<%= documentationURL %>"><%= name %> documentation</a>
</p>
<img src="/powered.png" />
</body>