1
0
Fork 0
forked from svrjs/svrjs
Commit graph

382 commits

Author SHA1 Message Date
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
1a7e602198 Change version from Nightly-GitMain to Nightly-GitNext. 2024-08-24 16:59:05 +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
5171855776 Add more npm scripts. 2024-08-23 17:21:52 +02:00
c9db45c0fe The build script now builds SVR.JS .zip archive. 2024-08-23 17:18:18 +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
0e722d8fcf Updated many dependencies and changed files related to licenses accordingly 2024-08-22 12:40:30 +02:00
0ec041617e Update "index.html" file 2024-08-06 16:53:05 +02:00
af02333183 Add the code to send data to the statistics server. 2024-08-06 16:34:13 +02:00
Dorian Niemiec
3661ccb92f
Update main.yml 2024-06-22 09:16:06 +02:00
94f4374718 Git test file removed 2024-06-22 08:27:08 +02:00
e1877c3ea9 Git file test 2024-06-22 08:22:25 +02:00
c05b8f8d00 Lifted PBKDF2 restrictions on Bun 1.1.13 and later. 2024-06-13 15:21:02 +02:00
2c2ca100a4 Lint out unnamed functions 2024-05-30 09:15:11 +02:00
d2e9f73f2f Move worker forking code to separate function. Also cap minimum number of workers to 12 to reduce idle memory usage. 2024-05-30 09:06:01 +02:00
5942f9dbde Fix URL parser even more 2024-05-21 17:26:22 +02:00
6933e3e9ed Fixed bug in the URL parser (URLs with "@" got erroneously "sanitized" to "/") 2024-05-21 17:08:06 +02:00
5781233ff7 Replace "minClusters" and "allClusters" with "minWorkers" and "allWorkers" respectively 2024-05-20 17:34:29 +02:00
fc03b485ef Removed 16 CPU cores cap 2024-05-20 17:29:40 +02:00
2eedf125a8 Combine crash handlers in master process into one function. 2024-05-20 17:27:09 +02:00
8af7f1df99 Improve HTTP partial content request logging 2024-05-13 17:59:48 +02:00
9c82164433 Add checks for zero-length head and foot in static file serving function 2024-05-13 17:56:58 +02:00
0a3371878c Added support for Range requests for HTML files 2024-05-13 17:29:18 +02:00
f3edbcc3f3 Fix the previous commit 2024-05-13 17:01:11 +02:00
6c3a5bd9ee Reduced calls to "mime-types" library 2024-05-13 16:59:41 +02:00
87ba2dd985 Update the design of default HTML pages 2024-05-06 11:55:26 +02:00
01d3a18e01 Correct the CSS for HTML tables 2024-05-06 11:04:05 +02:00
c922ebf1ae Add CSS to default error pages 2024-05-06 11:00:54 +02:00