Commit graph

118 commits

Author SHA1 Message Date
Avad3
17ab03dcdc Fix proxy handling 2022-09-01 13:06:02 -04:00
Cohen Erickson
275a6fd445
Merge pull request #8 from Avad3/main
Fix Osana being the default proxy
2022-09-01 12:01:10 -05:00
Avad3
bdd1bbc980 Fix Osana being the default proxy 2022-09-01 12:55:29 -04:00
Green!
5e7dde2534
Merge pull request #7 from CountBleck/fixes
Minification and more!
2022-09-01 09:31:02 -04:00
CountBleck
40e9a564c5
Update and minify Osana
Prior to this commit, Osana was not minified at all. This commit updates
Osana so it is minified. Refraining from minification is just asking for
longer load times.
2022-08-31 20:45:27 -07:00
CountBleck
9fc1780af6
Update Ultraviolet to production mode
Now that the static file server is sane in terms of encoding, this new
production bundle can be used, even with all of its janky regexes.
2022-08-31 19:58:26 -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
eaa3ce9709
Check the type of proxy being used properly
The block inside `if (proxy == 'uv' || 'osana')` is always going to run,
because 'osana' is a truthy value. I hope those aren't bad habits from
Python.
2022-08-31 17:53:03 -07:00
Green!
05020a75ff
Merge pull request #6 from CountBleck/fixes
More error-handling fixes
2022-08-30 22:53:04 -04: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
Green!
debc93a610
Update README.md 2022-08-30 20:54:12 -04: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
Cohen Erickson
c79386627a
Fix client script location (Osana) 2022-08-30 15:39:02 -05:00
CountBleck
4ec92aec50 Remove redundant try block in Cyclone's fetch
The error handling in the catch block led to a bug where the request's
body was piped to Cyclone's response. However, since the mock request in
the catch block doesn't have a body property, let alone a pipe method,
that line throws an error.
2022-08-30 10:35:54 -07:00
Green!
f83733b758
fixed "Nebula.dev" header 2022-08-30 13:16:43 -04:00
Green!
423584fa9a fixed incorrect imports for importScripts (Osana) 2022-08-30 17:15:51 +00:00
Green!
5e16f336f7
Merge pull request #5 from Avad3/main
Add Osana
2022-08-30 12:54:42 -04:00
Avad3
8af38aad13 Add Osana 2022-08-30 11:48:12 -04:00
Green!
68a6b18ce1
Merge pull request #4 from CountBleck/fixes
Fix error reporting in Cyclone custom bare
2022-08-30 10:36:54 -04:00
CountBleck
1e932d9518
Fix headers in Cyclone custom bare
Referer is misspelled incorrectly. Also, the Cookie header name was
incorrect, and `req.cookies` does not exist (as far as I know anyway).
2022-08-27 20:57:02 -07:00
CountBleck
26ee852336
Fix error reporting in Cyclone custom bare
console.log(e) is a bad idea in general. Moreover, errors cannot be
written to streams, since they are neither strings nor Buffers.
2022-08-27 20:02:17 -07:00
Green!
1bfb78eed7
Merge pull request #3 from CountBleck/fixes
Several minor, non-breaking changes
2022-08-26 09:51:39 -04:00
CountBleck
5f38e9b636 Bump npm's lockfile 2022-08-25 22:08:44 -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
9d77455926 Fix a few typos in the documentation
I did not modify docs/officially-supported-sites.md, however. That file
should be modified and reorganized as seen fit.
2022-08-25 21:50:39 -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
CountBleck
a83063cf10 Modify keyword/license fields to be more accurate
The license field is supposed to have a short identifier representing
the project's license, like "MIT". The keywords field is for npm's
search, if this package is ever published.
2022-08-25 21:31:48 -07:00
Green!
9d52343041
Update README.md 2022-08-25 10:32:15 -04:00
Green!
bd2d170288
Create officially-supported-sites.md 2022-08-25 10:18:22 -04:00
Green!
6837b6f353
Update README.md 2022-08-25 09:23:33 -04:00
Green!
7d4d590b4a
Update README.md 2022-08-22 13:11:45 -04:00
Green!
0afd098f0d
Update README.md 2022-08-16 15:56:07 -04:00
Green!
7279a4ab6d
Update README.md 2022-08-16 15:55:29 -04:00
Green!
eca1642300
Update README.md 2022-08-16 15:55:16 -04:00
Green!
f542e0dd2d
Delete CNAME 2022-08-16 10:53:19 -04:00
Green!
5aa99c14a3
Create CNAME 2022-08-16 10:53:14 -04:00
Green!
a9e06b0075
Set theme jekyll-theme-minimal 2022-08-16 10:43:26 -04:00
Cohen Erickson
9d45a8f7c5 add ARC 2022-08-14 20:07:49 -05:00
Cohen Erickson
5b3e8f2ee2 arc sw 2022-08-14 19:49:35 -05:00
Cohen Erickson
b84a3126cc
Adsense 2022-08-14 19:27:20 -05:00
Cohen Erickson
754d59f8f5 Merge branch 'main' of https://github.com/NebulaServices/Nebula 2022-08-13 13:07:25 -05:00
Cohen Erickson
5287da25fd Update .gitignore 2022-08-13 13:07:07 -05:00
Cohen Erickson
f0c5268d5d
Delete .DS_Store 2022-08-13 13:06:43 -05:00
Cohen Erickson
5719fc8930 Prepare 2022-08-13 13:01:19 -05:00
Green!
73e3271bef
Add GetRandomName() for the tab naming 2022-08-11 08:52:23 -04:00
Green!
198438db97
Update README.md 2022-08-06 13:42:10 -04:00
Green!
632efc7080
Update README.md 2022-08-06 13:41:29 -04:00
Green!
a2fbae06e8 Merge branch 'main' of https://github.com/NebulaServices/Nebula 2022-08-05 19:28:33 -04:00
Green!
1cd37529aa Better theme system + updated Cyclone 2022-08-05 19:28:28 -04:00