Commit graph

17 commits

Author SHA1 Message Date
Cohen Erickson
611772c5fd Merge branch 'main' of https://github.com/cohenerickson/Nebula 2023-02-06 04:07:53 +00:00
Cohen Erickson
6376a1da6a Format using prettier 2023-02-05 18:24:10 +00:00
Cowington Post
3953acdad0 Added SMTP and discord webhooks 2023-01-30 08:38:40 -08:00
Green!
38dde4ed38 Several major changes: Added verification system, better loading screen, added documentation, optimizations, cleanups, etc, and finally fixed Markdown. 2022-11-14 04:16:59 +00:00
Cohen Erickson
5885af8ebf Purge Cyclone 2022-10-16 17:14:57 +00:00
CountBleck
762d8d7d39
Add max-age value to serve-static
This change may improve caching for static assets. However, most HTTP
requests are directed to the Bare server, so the improvement the max-age
value makes may be negligible.
2022-09-13 19:06:37 -07:00
CountBleck
fffa8fcf0c
Switch from node-static to serve-static
Unlike node-static, serve-static sets the proper encoding. Also, it's
used by Express. :^)
2022-08-31 19:58:26 -07:00
CountBleck
a9e3b27cb5 Add UNSAFE last-resort measure to prevent crashes
This is really unsafe, according to Node.js's docs (see link below).
Therefore, this handler is only added if the UNSAFE_CONTINUE environment
variable has a truthy value.

https://nodejs.org/api/process.html#warning-using-uncaughtexception-correctly
2022-08-30 18:58:01 -07:00
CountBleck
4ff19c9fa5 Improve error handling in some cases
In Cyclone's fetchBare(), the content type wasn't correct, and the
status line should be "Internal Server Error", not just "Error". In
the main request handler, I added similar error handling, just in case.
2022-08-30 15:24:48 -07:00
CountBleck
18cca9b49e Read static files from the correct directory
By default, paths in Node.js are resolved based upon the current
directory. This is problematic when the server is started from the home
directory or through systemd. This commit ensures static files are read
relative to app.js's path, instead of the current directory.
2022-08-25 21:56:26 -07:00
CountBleck
796bdfaff5 Move app.mjs to app.js
app.js was originally a stub that imported app.mjs, which is redundant.
This change is split into two commits to preserve Git history for what
is now app.js.
2022-08-25 21:34:23 -07:00
CountBleck
cf52907e96 Remove app.js
This will be replaced by app.mjs in the next commit.
2022-08-25 21:33:42 -07:00
Green!
1cd37529aa Better theme system + updated Cyclone 2022-08-05 19:28:28 -04:00
schooldev49
8f0d616ab6 deez nuts 2022-06-07 18:48:04 -04:00
Green!
dae8caac50 v7 2022-06-07 02:23:24 -04:00
Green!
cd9737ddb7 v7 2022-06-07 01:54:29 -04:00
Green!
3e557650fa
v6.7.7 2022-05-17 13:39:52 -04:00