Commit Graph

  • 71bedaf9e8 Changed json keys to lower-case Seednode 2023-01-19 12:40:33 -0600
  • ed748a9b8c Corrected usage message Seednode 2023-01-19 12:12:40 -0600
  • 1a4496b788 Added stats endpoint Seednode 2023-01-19 12:07:15 -0600
  • 979a9e4d4c Added 200 Ok response when clearing cache Seednode 2023-01-18 19:14:39 -0600
  • 42734cda62 Added /clear_cache endpoint to regenerate cache on demand Seednode 2023-01-18 12:11:23 -0600
  • b96ee8ac99 Removed mutually exclusive flag from cache and filter, now cache is bypassed if filters are supplied Seednode 2023-01-18 11:50:29 -0600
  • b5c4534151 Corrected typo in readme Seednode 2023-01-18 11:20:47 -0600
  • 0906bd6769 Updated copyright year Seednode 2023-01-18 11:19:29 -0600
  • 19fa332ced Cached mode now generates cache on first run, not first HTTP request, to improve initial response time Seednode 2023-01-18 11:18:01 -0600
  • 7929209eed Clarified that refresh interval must be positive and non-zero Seednode 2023-01-18 10:57:55 -0600
  • d343be7253 Added support for time.Duration refresh intervals, instead of just integer seconds Seednode 2023-01-18 09:58:14 -0600
  • 701d0c2666 Updated transitive dependencies Seednode 2023-01-05 20:44:01 -0600
  • 8ddbe8b2c6 Replaced <= 0 with < 1 for readability's sake Seednode 2022-12-20 18:24:07 -0600
  • cf79bc1d3d Moved determining real IP address to its own function Seednode 2022-12-20 18:17:33 -0600
  • af9def38ba Accidentally referred to response headers, not request headers, when determining IP address Seednode 2022-12-20 17:54:27 -0600
  • 3d560ef770 Added initial attempt at reporting proper IPs in logs Seednode 2022-12-20 17:48:05 -0600
  • cfbffb6dab Fixed incorrect IsEmpty() check that would return true if exactly one of HasIncludes() or HasExcludes() returned true Seednode 2022-12-20 17:12:37 -0600
  • 5ef1d19780 Updated transitive dependencies Seednode 2022-12-07 17:26:38 -0600
  • 61587985cc Updated transitive dependencies Seednode 2022-12-06 16:57:07 -0600
  • 06381fd0b9 Updated transitive dependencies Seednode 2022-11-29 21:20:21 -0600
  • 85ddc13627 Clarified which builds are actually tested Seednode 2022-11-11 17:51:02 -0600
  • a053d8bb94 Specified supported platforms for Docker image Seednode 2022-11-11 17:48:29 -0600
  • 06fd74741f Added more build platform targets, maybe I'll even test some of them Seednode 2022-11-11 17:44:05 -0600
  • e8a06a09a4 Disabled CGO instead of statically linking it in Seednode 2022-11-11 17:34:41 -0600
  • f9d7be008d Combined declare/initialize steps for structs Seednode 2022-11-11 09:44:47 -0600
  • d3c063017d Removed extraneous check in getRefreshInterval(), inverted value check in getSortOrder(), replaced string concatenation with strings.Builder in generateFilePath() Seednode 2022-11-11 09:19:53 -0600
  • c30c966ee3 Fixed missing close-paren Seednode 2022-11-10 23:36:59 -0600
  • e605bf1f0f Added link to Dockerfile repo to README Seednode 2022-11-10 23:36:38 -0600
  • 76aab2c2a2 Added docker image to README Seednode 2022-11-10 23:34:31 -0600
  • 76e1ad90f7 Added contact info to readme Seednode 2022-11-10 23:33:20 -0600
  • 0b34784b12 Images are now centered, both vertically and horizontally Seednode 2022-11-10 23:24:14 -0600
  • 0bdbc5d2a0 Merge branch 'master' of ssh://git/seednode/roulette Seednode 2022-11-10 15:34:12 -0600
  • eff8394453 Changed variable name from PascalCase to camelCase Seednode 2022-11-10 15:34:07 -0600
  • 6e16f6eef4 Fixed phrasing consistency in README Seednode 2022-11-10 14:54:55 -0600
  • 7a49433e17 Fixed typo in README, clarified that filters must be alphanumeric Seednode 2022-11-10 14:54:17 -0600
  • 5f28361f47 Fixed issue where invalid include/exclude values were being accepted Seednode 2022-11-10 13:57:38 -0600
  • ea4b1be5c3 Added basic input verification for sortOrder/refreshInterval Seednode 2022-11-10 10:09:39 -0600
  • 28af94cba3 Refresh now happens X seconds after page finishes completely loading, not X seconds after the initial request is sent Seednode 2022-11-10 09:38:40 -0600
  • b6a46a63b6 Updated transitive dependencies Seednode 2022-11-10 00:31:50 -0600
  • 4b596743f7 Replaced error if/else checks with switch/case, to keep things consistent Seednode 2022-11-10 00:29:06 -0600
  • 283b4fccec Unified error handling, fixed missing file checks, and added logging for requested (but not available) files Seednode 2022-11-10 00:26:21 -0600
  • 0a251e8f5a Always append refresh query string, replaced string concatenation with strings.Builder in generateQueryParams() Seednode 2022-11-10 00:04:47 -0600
  • 3e98201cdd Removed extraneous </img> tag and added doctype tag Seednode 2022-11-09 23:53:02 -0600
  • f12b800a71 Replaced const string template with strings.Builder, to be hopefully somewhat more readable while still being moderately efficient Seednode 2022-11-09 23:33:13 -0600
  • 43a515c896 Replaced image dimension string variable with Dimensions struct, replaced handrolled HTML generation with gohtml library, added height and width to img tags Seednode 2022-11-09 23:17:19 -0600
  • ac67d710c8 Moved javascript after img tag Seednode 2022-11-09 21:25:04 -0600
  • a9b2af3e18 Fixed improper handling of potentially empty string for strconv.Atoi() Seednode 2022-11-08 19:30:08 -0600
  • ea2e17d265 Added automatic reload functionality via query parameters, and rewrote generateQueryParams() to hopefully be more readable Seednode 2022-11-08 19:24:49 -0600
  • c213911969 Only generate filter struct once, further simplify switch/case om serveHtmlHandler() into a simple if/else Seednode 2022-11-05 11:17:31 -0500
  • b6f7d9c104 Reworked functions to be more concise (e.g. now getNewFile and getNextFile work with or without sortOrder) Seednode 2022-11-05 11:00:42 -0500
  • 70a1eaf91d Reverted previous change because the count was actually working fine, I just forgot my test instance was pointing at multiple directories Seednode 2022-11-02 09:17:07 -0500
  • ea1d8d52c6 Maybe fixed incorrect total scanned file count displayed when -v is passed Seednode 2022-11-02 09:10:55 -0500
  • c13eac975f Fixed length of extensions array, and added bmp to the support formats in the readme Seednode 2022-10-31 15:18:47 -0500
  • 7e5f8b4c14 Removed unused image decoders from vendoring Seednode 2022-10-29 10:46:08 -0500
  • 7fbac504bc Removed unused tiff/vp8 decoders from vendoring Seednode 2022-10-29 10:43:58 -0500
  • 3450ea89e0 Fixed for loop requesting out-of-range index in pickFile() Seednode 2022-10-29 10:41:03 -0500
  • f6924ba7b5 Added support for .bmp images Seednode 2022-10-29 10:32:01 -0500
  • 297c561fab pickFile now iterates through entire file list, instead of stopping after an arbitrary number Seednode 2022-10-28 23:07:25 -0500
  • 2274c51e84 Set --cache and --filter as mutually exclusive Seednode 2022-10-28 22:59:59 -0500
  • 3d6e7b0493 Added limit on file checking retries Seednode 2022-10-28 21:08:08 -0500
  • ad6d7e2cd3 Empty space on image pages is now clickable, and returns a new random image Seednode 2022-10-28 19:52:53 -0500
  • 97e3b47b19 Only seed rng once, at initialization, and speed up picking random file by using rand.Intn instead of shuffling the slice Seednode 2022-10-28 19:49:49 -0500
  • 920bdb2615 Slight formatting change to HTML output, for consistency's sake Seednode 2022-10-28 19:18:34 -0500
  • 5c7bb60dcb Entire 404 page is now clickable, and attempts to open a new random file Seednode 2022-10-28 19:09:05 -0500
  • 0434353942 Display image size in tab titles, to match behavior of images served directly Seednode 2022-10-28 18:32:03 -0500
  • 8c763db461 Removed two debug print statements I accidentally left in Seednode 2022-10-28 17:26:26 -0500
  • f21c01e085 Added flag to cache directory scan at startup Seednode 2022-10-28 17:19:04 -0500
  • 44972fde78 Reordered variable initialization to match parameter orders Seednode 2022-10-25 09:40:27 -0500
  • 3801421567 Display size of file served when verbose flag is passed Seednode 2022-10-25 00:11:55 -0500
  • 1fe42cb217 Merge branch 'master' of ssh://git/seednode/roulette Seednode 2022-10-25 00:07:06 -0500
  • 0434d87b3e Added symlink handling Seednode 2022-10-25 00:06:57 -0500
  • f7d5ef0a6b Updated transitive dependencies Seednode 2022-10-24 21:50:41 -0500
  • c52ace1fdb Print version on launch Seednode 2022-10-23 17:39:49 -0500
  • 22b6127bf2 Re-enabled Windows builds Seednode 2022-10-23 16:49:32 -0500
  • 8d50f5a088 Second attempt at fixing Linux builds Seednode 2022-10-23 16:47:23 -0500
  • f85749b030 Hopefully fixed Linux functionality Seednode 2022-10-23 16:29:58 -0500
  • 518affd8a4 Removed binary Seednode 2022-10-23 16:21:35 -0500
  • 8dbecba77e Testing initial Windows support Seednode 2022-10-23 16:16:40 -0500
  • aa2413eafc Compile regex at start, instead of each page load Seednode 2022-10-23 13:45:49 -0500
  • 76109342ed "Replaced switch with sequential if statements" Seednode 2022-10-23 13:08:08 -0500
  • ae82762745 Merged -c|--count flag into -v|--verbose, reformatted verbose output Seednode 2022-10-20 17:55:25 -0500
  • e39950de68 Switched redirect status code back from 307 to 303, and defined it as a const. Seednode 2022-10-20 17:12:29 -0500
  • 8e4c9c5e32 -c|--c now also displays time spent scanning for files Seednode 2022-10-20 14:50:42 -0500
  • 15d925a6d0 Merge branch 'master' of ssh://git/seednode/roulette Seednode 2022-10-20 14:22:30 -0500
  • 1cbc84d789 Attempting to add concurrency, may god have mercy on my soul Seednode 2022-10-20 14:22:01 -0500
  • 15fc783f84 Updated readme with new -c|--c flag Seednode 2022-10-20 11:30:53 -0500
  • 9cc372d7c4 Added -c|--count flag to display number of files and directories matched and skipped Seednode 2022-10-20 11:17:40 -0500
  • 31d16f65b8 Fixed issue where having empty include but non-empty exclude caused 404 Seednode 2022-10-20 10:38:32 -0500
  • 5c1f27a3ad Updated readme Seednode 2022-10-19 20:42:08 -0500
  • c8a2e56e92 Skipped parsing query params if the corresponding flag isn't enabled Seednode 2022-10-19 20:39:57 -0500
  • 6508f2d170 Added flags to enable/disable filtering and sorting Seednode 2022-10-19 20:37:12 -0500
  • 7819cf3090 Added handling for errors so it doesn't just silently exit if the port is in use Seednode 2022-10-19 20:07:20 -0500
  • f2204a3019 Slight correction Seednode 2022-10-19 19:57:54 -0500
  • d580f1a9ab Added info about query parameters to readme Seednode 2022-10-19 19:56:42 -0500
  • fa7177849e Replaced some value passing with pointers, per suggestions from copyfighter Seednode 2022-10-19 19:41:42 -0500
  • 5d9a815bf2 Replaced option to filter for a single stream with include and exclude options, each accepting multiple comma-delimited values Seednode 2022-10-19 19:27:11 -0500
  • 4d6c6f9bf1 Removed Windows builds, since path handling is hard Seednode 2022-10-19 14:39:55 -0500
  • 41a7546334 Hopefully fixed Windows support Seednode 2022-10-18 17:30:04 -0500
  • b0ebf1177b Updated readme with more useful info Seednode 2022-10-18 16:58:15 -0500
  • 0a546dd468 Changed port type from int to uint16 Seednode 2022-10-18 16:54:01 -0500