Commit Graph

45 Commits

Author SHA1 Message Date
Tracker-Friendly f0559ed5b5 Use int instead of float64 in configs
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-15 18:37:44 +00:00
Tracker-Friendly 684c9d6d48 Cleaned up the logging
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-14 19:52:57 +00:00
Tracker-Friendly d8a6a48c43 Got rid of debug code
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-14 19:51:47 +00:00
Tracker-Friendly 5145c65d04 Added support for custom ports
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-14 19:48:39 +00:00
Tracker-Friendly 1302147be2 Updated go version, updated dependencies
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-08 18:02:41 +00:00
Tracker-Friendly d40bc7dc8e Fixed a bug where setting compression would crash the server on local routes, fixed some useless never-will-happen eventualities
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-04 17:09:45 +00:00
Tracker-Friendly eebe3763f5 Added support for more advanced proxy configuration
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 19:10:28 +00:00
Tracker-Friendly d302745c9a Switch to httpcompression in order to save me some coding time and also fix all of our assorted compression problems
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 15:55:11 +00:00
Tracker-Friendly 3114dd556e Ok forget http/3
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 15:33:12 +00:00
Tracker-Friendly dac060cee5 HTTP/3: Attempt 1
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 14:59:05 +00:00
Tracker-Friendly 8d27ad6b98 Add a "stealth mode" in case for whatever reason you don't want to show the entire world you're using a super obscure http server
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 14:26:02 +00:00
Tracker-Friendly 694f62f238 Added redirects, make one pathBlock able to contain multiple paths
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 13:20:09 +00:00
Tracker-Friendly ac7230c6b5 Fixed not parsing yaml https certificates correctly
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 13:05:44 +00:00
Tracker-Friendly 322e901d16 Add globally defined HTTPS certs, fixed an ineffective assignment, isolated registering services into its own function
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 13:03:49 +00:00
Tracker-Friendly 975b24a13f This is hell
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 12:21:45 +00:00
Tracker-Friendly 144452f798 Fix the directory listing, once and for all
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 12:13:34 +00:00
Tracker-Friendly 65de87137d Make it always redirect to dir/ for directories otherwise it breaks HTML relatives
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 12:11:40 +00:00
Tracker-Friendly b0fb00d7fd This directory listing isn't very good, is it...
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 12:09:05 +00:00
Tracker-Friendly 7b1188545d Made the directory listing not uber-broken, made it serve index.html by default
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 12:07:53 +00:00
Tracker-Friendly d25e0a4877 Fixed subdomain routers not working if the service is activated after the file servers, which always happened. Also, do not load services not specified. Also, switch to a yaml config.
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-03 11:58:33 +00:00
Tracker-Friendly cf5dbe7946 Switched to a new config file format, switched to a custom error handling screen instead of 404 Page Not Found, switched to per-route static file service, added proxying (in beta), reduced the cyclomatic complexity of main() function, broke up the compression handlers into different functions, added HTTPS functionality (beta), made the global router not special, use a custom http handler to automatically switch between compression schemes based on per-route compression settings, support comments in the configuration file.
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-11-01 13:09:35 +00:00
Tracker-Friendly 6b483f712e Added fancy printing when building, fixed compressionlevel attempting to be set when no compression is specified
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-29 12:51:04 +00:00
Tracker-Friendly d6adc1c775 Added compression support, made all fetches use jsFetch for improved binary sizes
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-29 11:20:01 +00:00
Tracker-Friendly 88bde3f592 fix the custom server header
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-24 19:41:37 +01:00
Tracker-Friendly dfe1fdf6f0 Use a custom server header
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-24 19:39:45 +01:00
Tracker-Friendly 4fc99aeb42 Add support for static files
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-24 19:27:25 +01:00
Tracker-Friendly 6eb9e76316 Try to fix subdomain architecture
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-20 19:51:16 +01:00
Tracker-Friendly 5ebb572251 Switched to the CGO sqlite driver to fix an out of memory bug
Signed-off-by: arzumify <jliwin98@danwin1210.de>
2024-10-20 18:39:20 +01:00
Tracker-Friendly 5492212611 Attempt yet another method of activating services
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-15 19:17:29 +01:00
Tracker-Friendly 02372cb9ed Moved to the v2 version of the fulgens library
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-15 19:06:05 +01:00
Tracker-Friendly 518232d853 I forgot to mount the thing
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-15 18:46:04 +01:00
Tracker-Friendly eb4b07840e Try to fix subdomains (2/2)
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-15 18:33:45 +01:00
Tracker-Friendly c4dae7ac03 Try to fix subdomains
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-15 18:29:16 +01:00
Tracker-Friendly 58838f51ad Made the postgres connection be tested before opening, fixed the postgres create new users table
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-14 12:23:33 +01:00
Tracker-Friendly 4fe28255fe Updated packages, removed unneeded double-check, switched over to RFC-2024-0008 as the authentication protocol, updated fulgens library, fixed broken quotas, fixed a broken JSON validator
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-13 19:20:19 +01:00
Tracker-Friendly 1290b10774 Merged activatedServices and services, removed uses of fmt
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-04 19:37:05 +01:00
Tracker-Friendly 018cb6e74b Made the nucleus apps not have any special loading process over others except from loading first, fixed clientKeyShare interpreting the token wrongly
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-04 18:30:17 +01:00
Tracker-Friendly acc5067b5e Updated a lot of libraries, seperated fg-library into its own package to solve build issues with version incompatibilities across modules
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-03 19:06:53 +01:00
Tracker-Friendly 8c25a88bbd Fixed non-nucleus services not getting proper resources
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-03 18:49:19 +01:00
Tracker-Friendly 4eb690ea9a Fixed a lot of data races, updated a lot of packages
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-03 18:33:41 +01:00
Tracker-Friendly ac7006ee01 Fixed the JWT versions being highly outdated
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-03 17:41:09 +01:00
Tracker-Friendly ddc47748fc Removed the serviceInitialisationInformation give a ServiceID, because it's not needed
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-10-02 17:07:01 +01:00
Tracker-Friendly 0301b3a6f3 Whoops, forgot to update the Chi middleware :P
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-09-29 18:54:30 +01:00
Tracker-Friendly 5b53e5e56f Updated PoW library, removed unused graphics, moved checking client token validity serverside in clientKeyShare, made not having a user account not crash the app, made the PoW easier and have a cleaner interface, fixed some elements in dark mode, optimised 0px -> 0 in some CSS, updated some packages
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
2024-09-29 16:06:28 +01:00
Tracker-Friendly 42d478ec48 Initial commit 2024-09-28 19:41:34 +01:00