From 8073f51730f29ef8610a3f5437dd6e1bbcabedb2 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 3 Mar 2024 15:53:04 +0100 Subject: [PATCH] Changed design of the default page --- index.html | 143 ++++++++++++++++++++++++++--------------------------- 1 file changed, 70 insertions(+), 73 deletions(-) diff --git a/index.html b/index.html index 952b982..3d2fa0c 100644 --- a/index.html +++ b/index.html @@ -22,83 +22,80 @@

If you see this page that means that the server is working properly. You can further configure the server and replace index.html and tests.html pages with custom ones.

Default config.json looks like this:

-
- - {
-   "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"
-         }
-       ]
-     },
-     {
-       "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": {}
+ +
{
+  "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"
         }
-      
-    
+ ] + }, + { + "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": {} +} +

Changes:

-