Dorian Niemiec DorianNiemiecSVRJS
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 20:32:34 +02:00
c1900ee128 Add non-standard codes and HTTP authentication middleware, and SHA256 utility function.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 19:50:10 +02:00
eb0d30f307 Lint out the codebase.
8be7735e71 Refactor code for --reset parameter again.
2e8a4fb042 Refactor command line argument parsing code, and split deleteFolderRecursive function into one JavaScript file.
Compare 3 commits »
DorianNiemiecSVRJS pushed to main at svrjs/svrjs 2024-08-24 19:48:41 +02:00
98b251b867 Fix bug in factoryReset() function.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 19:43:47 +02:00
918c0d3646 Added missing "testdir" directory to assets folder.
07c7199adb Add log, mods, and temp directory creation in output directory
b9bb16b0ed Add command line options
Compare 3 commits »
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 19:30:32 +02:00
ca5c22c9c3 Move required modules in index.js
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 19:29:21 +02:00
11e7247869 Replace __dirname with process.dirname (declared as __dirname in index.js)
24b161b0ed Replace var's with const's in the middleware that checks for forbidden paths.
Compare 2 commits »
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 17:47:04 +02:00
519988fbdb Lint out the codebase.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 17:44:32 +02:00
67fec5fe98 Add middleware that checks for forbidden paths. Also add some more placeholder config.json variables.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 17:32:35 +02:00
d688166022 Add middleware responsible for setting response headers (res.setHeader function).
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 17:23:14 +02:00
f552b34878 Lint out the codebase.
f48125f4f2 Move matchHostname function to separate source file, and add unit tests for the function.
Compare 2 commits »
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 17:15:06 +02:00
519e68465a Add SVR.JS name and documentation URL to svrjs.json file.
1161256ab9 Create config.generateServerString() function and src/utils/generateServerString.js file.
1a7e602198 Change version from Nightly-GitMain to Nightly-GitNext.
e1b6ca8803 Change serverconsole.js, so it no longer exports the constructor, just serverconsole object.
3a8cdccc0d Replace configJSON with process.serverConfig.
Compare 6 commits »
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 08:24:51 +02:00
a3e4ee2328 Replace some var's with const's in URL rewrite and web root postfix middleware.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 08:22:59 +02:00
2481e3ed58 Add URL rewriting middleware, and lint out some other middleware.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 08:07:38 +02:00
a49dba73fe Lint out the codebase.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-24 08:02:19 +02:00
1929641ba7 Add web root postfixes middleware
DorianNiemiecSVRJS pushed to main at svrjs/svrjs 2024-08-24 07:49:47 +02:00
eafc2f076e Fix bug in ipMatch function.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-23 22:47:37 +02:00
a7acd9e1f4 Replace "callServerError" with "res.error" in the core middleware.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-23 22:20:10 +02:00
cbd3ab0cd0 Adapted redirectes middleware function to new SVR.JS API.
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-23 22:14:22 +02:00
53024dfdab Added redirects middleware.
0c9013feac Added res.head, res.foot, res.responseWrite, and rejection of expectations.
881502d897 Disable console.log for non-TTY stdout
00d01e7cf5 Replace "var" with "let" in core middleware, and add req.authUser set to null.
0e8b8392a4 Replace the placeholder fromMain with estimated one.
Compare 5 commits »
DorianNiemiecSVRJS pushed to next at svrjs/svrjs 2024-08-23 21:36:08 +02:00
d5c4e9aeaf Fix the baf38ee353 commit.