Commit Graph

  • e4ade4532b Updated transitive dependencies Seednode 2023-09-18 19:44:06 -0500
  • 173e1528be Rewrite filewalk functions, add (incomplete) to logging when -v|--verbose is passed and a broken pipe error is received Seednode 2023-09-16 20:15:39 -0500
  • 823bc2095d Update PGO profile Seednode 2023-09-16 18:07:03 -0500
  • 280656993d Fix scan stats to be both consistent and actually accurate Seednode 2023-09-16 18:04:44 -0500
  • 16d1428a52 Display bytes written to response instead of size of files being served in logs Seednode 2023-09-15 15:30:52 -0500
  • 7d49a86e70 Format inline file sizes with humanReadableSize() Seednode 2023-09-15 15:19:56 -0500
  • d4cf9cfa4f Add Type() method to types.Type, to allow displaying served file size for both embedded and inline files Seednode 2023-09-15 15:13:45 -0500
  • e67384caeb Remove test statement accidentally left in (oops) Seednode 2023-09-15 14:37:35 -0500
  • 1ed9df3932 Add log channel, add --exit-on-error option Seednode 2023-09-15 14:28:21 -0500
  • f5eb1f56f4 Replace int for Maximum/MinimumFileCount with uint, since there should never be negative values and default value overflows otherwise Seednode 2023-09-15 13:53:12 -0500
  • 0d252d0456 Remove atomic int usage and some mutexes, replace with channels Seednode 2023-09-15 13:51:04 -0500
  • ba827430bb Change --theme to --code-theme Seednode 2023-09-15 01:31:23 -0500
  • 90a480fad4 Simplify caching, allow use of filters with cache Seednode 2023-09-15 01:06:52 -0500
  • 76b4053240 Apply format validation even when caching is disabled Seednode 2023-09-14 22:39:51 -0500
  • 5ab6d1ee85 Add custom theme support Seednode 2023-09-14 22:13:21 -0500
  • fb74fa36f1 Update PGO profile Seednode 2023-09-14 21:43:24 -0500
  • 0b62009fa3 Remove debug argument Seednode 2023-09-14 21:13:12 -0500
  • bc268db233 Remove svg from image handler, remove line numbers from code handler Seednode 2023-09-14 21:09:19 -0500
  • 28bc560098 Add more languages for code syntax highlighting Seednode 2023-09-14 21:02:48 -0500
  • 8923a4c14d Fix validation of files when in cache/not cached mode Seednode 2023-09-14 19:10:55 -0500
  • aaee51e9a4 Add syntax highlighting for code Seednode 2023-09-14 17:37:22 -0500
  • 6b70741a68 Replace --refresh-interval flag with --refresh Seednode 2023-09-14 00:07:54 -0500
  • 0e7cb2bb36 Updated readme with new usage info for --refresh-interval Seednode 2023-09-14 00:05:31 -0500
  • 99ec1d7ebd Allow toggling of page refreshInterval Seednode 2023-09-14 00:01:50 -0500
  • a94b7e208d Remove html from text handler, add yaml/toml/sh/ps1 Seednode 2023-09-13 23:32:02 -0500
  • fdd33376ce Add --prefix flag for easy reverse proxying Seednode 2023-09-13 23:24:29 -0500
  • d612144be1 Fix handling directories with only one or two files Seednode 2023-09-13 22:08:01 -0500
  • bfb04cab66 Remove unneeded(?) prepareDirectory() function Seednode 2023-09-13 20:45:28 -0500
  • ce99374a9f Removed statistics (sorry) pending full rewrite Seednode 2023-09-13 17:02:43 -0500
  • d2d9418b8b Replace user.Home() with os.HomeDir() to remove CGo dependency (hopefully) Seednode 2023-09-13 12:46:14 -0500
  • 65b77f33cc Attempt to rework stats handling, add support for '~' in paths Seednode 2023-09-13 12:30:24 -0500
  • 61f10a6f3c Split http handler registration into source files Seednode 2023-09-13 12:00:24 -0500
  • 64639a87a3 Changed all variables to non-exported by default Seednode 2023-09-13 09:26:15 -0500
  • 3ea2227a9f Remove reference to supported files in readme, now available via HTTP endpoint Seednode 2023-09-12 23:41:36 -0500
  • b5d08b5b6d Removed sample images Seednode 2023-09-12 23:35:29 -0500
  • d7bc6e2451 Total restructure, just look at the diffs at this point Seednode 2023-09-12 23:35:17 -0500
  • cbf7218453 Added endpoints to view registered file formats Seednode 2023-09-12 22:35:15 -0500
  • c77a151a24 Gonna be honest, guys, I don't think I know what an interface is Seednode 2023-09-12 20:56:39 -0500
  • 62a8bde8ea Disable line-wrapping for text files Seednode 2023-09-12 19:55:54 -0500
  • a7daf81754 Replace []string with map[string]string for extensions, to allow setting default MIME type values Seednode 2023-09-12 19:46:27 -0500
  • 57bcd40c29 Enclose text content in readonly textarea to preserve formatting Seednode 2023-09-12 19:12:40 -0500
  • cc00a1b63b Fixed Next button when serving SWF files Seednode 2023-09-12 18:51:40 -0500
  • 3b4f8f7499 Change back from uint64 to uint32s because no filesystem ought to ever need over 2^32 files (ZFS? What's that?) Seednode 2023-09-12 16:46:58 -0500
  • e0d4b3882b Updated readme with new default argument values Seednode 2023-09-12 16:41:28 -0500
  • 732d944036 Rename formats package to types, replace Css string literal in type struct with func() string Seednode 2023-09-12 16:32:19 -0500
  • 6fea978459 Updated readme to replace --debug with --index Seednode 2023-09-12 14:00:15 -0500
  • c0265d2a6e Enable --images flag if nothing else is passed, to retain backward compatibility Seednode 2023-09-12 13:51:00 -0500
  • f872d0a27e Update readme to add --flash argument Seednode 2023-09-12 13:20:38 -0500
  • d18dc9a41c Remove unused Name value from SupportedFormat structs Seednode 2023-09-12 13:19:24 -0500
  • c996f3fc53 Serve ruffle from their CDN, instead of vendoring locally Seednode 2023-09-12 13:14:05 -0500
  • a29390aa76 Added .swf support, fallback to filetype detection by extension if mime type detection fails Seednode 2023-09-12 13:06:45 -0500
  • 7942ea85b5 Added .ogm as extension for Ogg videos Seednode 2023-09-11 22:02:56 -0500
  • b29e2012d5 Remove supported format list from readme, moved into formats/ source files Seednode 2023-09-11 21:24:25 -0500
  • 2097a9ab13 Add looping and preload to audio and video files, add file types listed as supported by MDN Seednode 2023-09-11 21:22:26 -0500
  • e614846302 Updated PGO profile for new setup Seednode 2023-09-11 20:10:19 -0500
  • 04ef12c19a Replaced uint32 with uint64 Seednode 2023-09-11 20:02:52 -0500
  • 93799e16fe Replaced cssFunction with string literal, since no customization should be needed Seednode 2023-09-11 19:43:18 -0500
  • 26bdedb5a2 Added UTF-8 validation for files when using --text Seednode 2023-09-11 19:38:38 -0500
  • 3c21946351 Add --all flag to allow all supported file types at once; add --text flag Seednode 2023-09-11 19:11:45 -0500
  • a217573483 Added -trimpath to Go build flags for Docker image Seednode 2023-09-11 16:17:49 -0500
  • a3f8a85d28 Replaced h2non/filetype with net/http DetectContentType() Seednode 2023-09-11 16:05:38 -0500
  • c06b536123 Added first/last buttons to debug pages Seednode 2023-09-11 14:37:59 -0500
  • 189b7d269c Disable prev/next buttons when at beginning/end of debug lists Seednode 2023-09-11 14:09:12 -0500
  • 51971feb87 Rearranged source files for consistency Seednode 2023-09-11 12:59:40 -0500
  • 86184f26bf Split source into more files and fixed bug where images wouldn't display due to swapped parameter order Seednode 2023-09-11 12:09:08 -0500
  • 951ff50f88 Moved types to their own package (formats) Seednode 2023-09-11 11:25:39 -0500
  • ce89e24ec9 Moved fileType() function into types.go Seednode 2023-09-11 10:50:34 -0500
  • e8ee96c7d6 First attempt at making format registrations modular Seednode 2023-09-11 10:43:09 -0500
  • 26933dbe4f Fixed Windows builds after URI structure change Seednode 2023-09-10 21:51:58 -0500
  • c7984d0743 Only remove file from cache after file has been removed from filesystem when --russian is passed Seednode 2023-09-10 21:28:27 -0500
  • 494f9271f4 Updated readme Seednode 2023-09-10 21:08:51 -0500
  • 2f1cfe28d0 Added support for toggling each of audio|image|video support Seednode 2023-09-10 21:05:35 -0500
  • 32bd20522a Added audio file support Seednode 2023-09-10 21:02:03 -0500
  • 8d0d271f79 Added mime type tags to <img> and <video> Seednode 2023-09-10 20:41:08 -0500
  • 8fa4a7c652 Corrected all references to image->media/file Seednode 2023-09-10 20:29:11 -0500
  • 928bbb8c53 Added video support Seednode 2023-09-10 20:23:48 -0500
  • c5d0eb3b36 Re-added openbsd builds, even though those will not be truly statically linked Seednode 2023-09-10 12:43:23 -0500
  • 9ff8245683 Updated licenses Seednode 2023-09-10 12:37:01 -0500
  • caf1b1889c Replaced math/rand with crypto/rand Seednode 2023-09-10 12:16:50 -0500
  • d869a375ab Removed redundant isImage check Seednode 2023-09-10 11:27:55 -0500
  • 30eead7e2f Cleaned up pagination calculations Seednode 2023-09-09 23:27:40 -0500
  • 1e11515b58 Fixed typo in readme section header Seednode 2023-09-09 21:28:24 -0500
  • c47ff755a5 Added readme info about --roulette Seednode 2023-09-09 21:27:57 -0500
  • 53d14ff279 Remove file from filesystem and cache at same time during serveStaticFile() Seednode 2023-09-09 21:17:17 -0500
  • 26475ed491 Moved warning for --russian earlier in init process Seednode 2023-09-09 21:00:58 -0500
  • 8bbfd36a09 Added --russian flag, fixed issue where last image in cache would never be served Seednode 2023-09-09 20:57:50 -0500
  • e4a4cb6bcd Remove unused debug statement, update usage info for --page-length Seednode 2023-09-09 19:47:44 -0500
  • 425857af84 Fixed pagination for stats, was using query parameter instead of httprouter parameter Seednode 2023-09-09 00:25:04 -0500
  • d2d87e010d Added --page-length flag to readme usage info Seednode 2023-09-09 00:09:26 -0500
  • e170990e83 Added pagination to debug and stats endpoints Seednode 2023-09-09 00:06:28 -0500
  • e4142bf832 Added --profile option to README Seednode 2023-09-08 00:51:13 -0500
  • 5d86be871f Added initial PGO test Seednode 2023-09-08 00:20:06 -0500
  • fc0c9974b1 Simplified alphanumeric regex Seednode 2023-09-07 16:20:48 -0500
  • e023001dc0 Output builds for all platforms which allow statically linked Go binaries Seednode 2023-09-06 17:51:21 -0500
  • 2e842e6a0a Rearranged ServePage() to be more intuitive in order of operations Seednode 2023-09-06 17:31:05 -0500
  • 05f8084089 Removed unused Stat type, removed unused regex for durations, replaced strings.Builder with string constant for favicon html Seednode 2023-09-06 11:53:19 -0500
  • de9bc0af97 Added --profile flag for net/http/pprof Seednode 2023-09-06 10:15:11 -0500
  • ec8b5c9c7f Import net/http/pprof Seednode 2023-09-06 09:06:44 -0500
  • 72c161c4f3 Updated transitive dependencies Seednode 2023-09-05 12:38:59 -0500
  • a4de013f5e Fixed link in readme Seednode 2023-09-05 10:20:04 -0500