|
988ff7c29c
|
Lint out the codebase
|
2024-08-25 11:57:45 +02:00 |
|
|
314cf247d4
|
Fix server string not displaying in the bad request response.
|
2024-08-25 11:55:42 +02:00 |
|
|
60615cdb5a
|
Move handlers to JavaScript files in handler directory.
|
2024-08-25 11:47:43 +02:00 |
|
|
726d161a64
|
Add client error handler, and lint out index.js
|
2024-08-25 11:32:03 +02:00 |
|
|
0085ff740d
|
Change reqerrhandler placeholder to emitting clientError event on the server.
|
2024-08-25 10:57:37 +02:00 |
|
|
478c3002f0
|
Remove "TODO: default handler" comment
|
2024-08-25 10:33:29 +02:00 |
|
|
0ceded2256
|
Add static file serving and directory listing functionality.
|
2024-08-25 10:23:37 +02:00 |
|
|
b5ad179097
|
Replace "SVR.JS" in status page with reference to svrjs.json
|
2024-08-25 09:47:36 +02:00 |
|
|
695816b9d0
|
Lint out the codebase.
|
2024-08-25 09:45:42 +02:00 |
|
|
55d5efe54f
|
Add default handler checks, server status page, sizify() utility function, and move counters from core.js middleware to index.js.
|
2024-08-25 09:44:53 +02:00 |
|
|
8a54834276
|
Lint out the codebase.
|
2024-08-25 09:25:06 +02:00 |
|
|
5d463c9f11
|
Fix a 500 HTTP error code related to URL rewriting functionality.
|
2024-08-25 09:14:38 +02:00 |
|
|
89e9b35829
|
Add ipBlockList utility function, blocklist functionality, and read from config.json functionality.
|
2024-08-25 09:12:39 +02:00 |
|
|
2f836231f4
|
Do some config.json TODO's
|
2024-08-25 08:32:49 +02:00 |
|
|
5fab894caf
|
Move parts of middleware that checks for forbidden paths to separate utils file, and add tests for them.
|
2024-08-25 07:13:41 +02:00 |
|
|
983133017f
|
Add some TODO comments for middleware.
|
2024-08-24 20:47:23 +02:00 |
|
|
e94391f197
|
Lint out the codebase.
|
2024-08-24 20:45:17 +02:00 |
|
|
2075d41ab3
|
Fix URL sanitiation and rewriting-related functions removing query strings and hashes.
|
2024-08-24 20:44:43 +02:00 |
|
|
3613aa92d2
|
Add trailing slash redirection middleware.
|
2024-08-24 20:40:28 +02:00 |
|
|
c1900ee128
|
Add non-standard codes and HTTP authentication middleware, and SHA256 utility function.
|
2024-08-24 20:32:06 +02:00 |
|
|
eb0d30f307
|
Lint out the codebase.
|
2024-08-24 19:50:01 +02:00 |
|
|
8be7735e71
|
Refactor code for --reset parameter again.
|
2024-08-24 19:49:36 +02:00 |
|
|
2e8a4fb042
|
Refactor command line argument parsing code, and split deleteFolderRecursive function into one JavaScript file.
|
2024-08-24 19:47:48 +02:00 |
|
|
b9bb16b0ed
|
Add command line options
|
2024-08-24 19:41:13 +02:00 |
|
|
ca5c22c9c3
|
Move required modules in index.js
|
2024-08-24 19:30:25 +02:00 |
|
|
11e7247869
|
Replace __dirname with process.dirname (declared as __dirname in index.js)
|
2024-08-24 19:29:12 +02:00 |
|
|
24b161b0ed
|
Replace var's with const's in the middleware that checks for forbidden paths.
|
2024-08-24 17:48:55 +02:00 |
|
|
519988fbdb
|
Lint out the codebase.
|
2024-08-24 17:46:55 +02:00 |
|
|
67fec5fe98
|
Add middleware that checks for forbidden paths. Also add some more placeholder config.json variables.
|
2024-08-24 17:44:25 +02:00 |
|
|
d688166022
|
Add middleware responsible for setting response headers (res.setHeader function).
|
2024-08-24 17:32:27 +02:00 |
|
|
f552b34878
|
Lint out the codebase.
|
2024-08-24 17:23:06 +02:00 |
|
|
f48125f4f2
|
Move matchHostname function to separate source file, and add unit tests for the function.
|
2024-08-24 17:21:09 +02:00 |
|
|
519e68465a
|
Add SVR.JS name and documentation URL to svrjs.json file.
|
2024-08-24 17:13:59 +02:00 |
|
|
1161256ab9
|
Create config.generateServerString() function and src/utils/generateServerString.js file.
|
2024-08-24 17:06:34 +02:00 |
|
|
e1b6ca8803
|
Change serverconsole.js, so it no longer exports the constructor, just serverconsole object.
|
2024-08-24 16:58:27 +02:00 |
|
|
3a8cdccc0d
|
Replace configJSON with process.serverConfig.
|
2024-08-24 16:55:44 +02:00 |
|
|
7a658613fe
|
Added process.singleThreaded flag.
|
2024-08-24 16:54:28 +02:00 |
|
|
a3e4ee2328
|
Replace some var's with const's in URL rewrite and web root postfix middleware.
|
2024-08-24 08:24:39 +02:00 |
|
|
2481e3ed58
|
Add URL rewriting middleware, and lint out some other middleware.
|
2024-08-24 08:22:49 +02:00 |
|
|
a49dba73fe
|
Lint out the codebase.
|
2024-08-24 08:07:31 +02:00 |
|
|
1929641ba7
|
Add web root postfixes middleware
|
2024-08-24 08:02:11 +02:00 |
|
|
a7acd9e1f4
|
Replace "callServerError" with "res.error" in the core middleware.
|
2024-08-23 22:47:27 +02:00 |
|
|
cbd3ab0cd0
|
Adapted redirectes middleware function to new SVR.JS API.
|
2024-08-23 22:19:41 +02:00 |
|
|
53024dfdab
|
Added redirects middleware.
|
2024-08-23 22:13:58 +02:00 |
|
|
0c9013feac
|
Added res.head, res.foot, res.responseWrite, and rejection of expectations.
|
2024-08-23 22:10:49 +02:00 |
|
|
881502d897
|
Disable console.log for non-TTY stdout
|
2024-08-23 21:58:26 +02:00 |
|
|
00d01e7cf5
|
Replace "var" with "let" in core middleware, and add req.authUser set to null.
|
2024-08-23 21:46:08 +02:00 |
|
|
0e8b8392a4
|
Replace the placeholder fromMain with estimated one.
|
2024-08-23 21:41:31 +02:00 |
|
|
d5c4e9aeaf
|
Fix the baf38ee353 commit.
|
2024-08-23 21:35:58 +02:00 |
|
|
baf38ee353
|
Add "throw wwwrootError", for now.
|
2024-08-23 21:34:58 +02:00 |
|
|
be33f83ed1
|
Added default config.json setting from SVR.JS 3.x, and fixed core middleware.
|
2024-08-23 21:33:26 +02:00 |
|
|
2dda7d73ab
|
Replaced responseEnd() function (which doesn't exist) with res.end() function for now
|
2024-08-23 21:27:36 +02:00 |
|
|
dd344ecca3
|
Expand core middleware, add URL sanitizer middleware, and add logging to the middleware error handling.
|
2024-08-23 21:25:23 +02:00 |
|
|
000ae75904
|
Add middleware functionality. Also replace JSON.parse with JSON.stringify with Object.assign.
|
2024-08-23 20:43:09 +02:00 |
|
|
ee4c3dcda6
|
Add some core functionality to SVR.JS
|
2024-08-23 19:58:15 +02:00 |
|
|
fbdb3f93d4
|
Add URL sanitizer. Also add eslint-plugin-jest to ESLint configuration.
|
2024-08-23 17:43:37 +02:00 |
|
|
6564ccbe83
|
Rewritten SVR.JS from scratch - the build system for the new SVR.JS is set up, but the source is just placeholders.
|
2024-08-23 17:05:10 +02:00 |
|