Commit Graph

113 Commits

Author SHA1 Message Date
Neale Pickett a1bba870d1 Backport event logging from v4 2020-11-11 13:13:09 -07:00
Neale Pickett b896969d80 fix for #107 that doesn't require a mutex
I didn't look into why the mutex was causing some sort of deadlock condition
on retrieving points. This fixes it, as long as the underlying filesystem
supports atomic file renames. So don't run this with NFS.
2020-03-10 20:50:03 -06:00
int00h5525 e286f265b9
Merge pull request #135 from dirtbags/sort_points.log
Sort points.log
2020-03-05 18:06:52 -06:00
John Donaldson d9277ad423 Make X-Forwarded-For handling an optional flag 2020-03-05 03:22:34 +00:00
John Donaldson cf72f8f253 Extract and use X-Forwarded-For headers in mothd logging 2020-03-05 02:19:46 +00:00
John Donaldson 2d5e8d6f9f Remove some unneeded debugging code 2020-03-02 19:32:25 +00:00
John Donaldson d0ccdd2a72 Force points.log to be sorted chronologically 2020-03-02 19:23:51 +00:00
Jack Miner 7726444a98
Added id parameter to points.json to return only a team's score 2019-11-19 19:16:21 -07:00
Neale Pickett 8af56b515d go fmt 2019-11-13 20:47:56 +00:00
John Donaldson 3e079616c1 Fixing issue where still-locked puzzle content could be downloaded 2019-11-07 19:22:15 +00:00
John Donaldson 7cea6e919e Changing manifest URL
Removing unecessary dehydrator
2019-10-28 17:38:27 +00:00
John Donaldson 8e6d58b643 Adding button to cache content
Adding server-side support for disabling manifest exports
2019-10-28 15:50:49 +00:00
John Donaldson 95bcc860e0 Working cache support 2019-10-25 23:53:40 +01:00
John Donaldson 0e54a6f9f5 Staging some intermediate dehydrator work 2019-10-21 15:36:20 +01:00
John Donaldson d5e7ce98c3 Rolling back a bad part of a commit 2019-10-03 16:28:04 -05:00
Neale Pickett bf44352fd7 New draggable list helper 2019-09-10 00:31:34 +00:00
Neale Pickett 03247983bb Possibly fix race condition in rate limiting 2019-04-30 03:31:16 +00:00
Neale Pickett 1614b02b66 Throttle submissions per team (more...)
* Preload team hashes in maintenance goroutine
* Check team hash weirdness at maintenance time
* Check team hash validity before checking answer
* Rate limit answer submissions (adjustable with -attempt flag)
* ... and more!
2019-03-07 22:03:48 -05:00
Neale Pickett 041b582935 Remove external library dependencies 2019-02-26 16:27:20 -07:00
Neale Pickett 628d8a0b05 go fmt 2019-02-25 16:07:53 +00:00
Neale Pickett 8e67abe0c0 Now you can hit enter to sign in 2019-02-22 19:09:38 -07:00
Neale Pickett ad9dab3d8f work on updated client API 2019-02-23 00:43:04 +00:00
Neale Pickett 651c8fdfa4 Path traversal fix, beginning to work on teamid as auth 2019-02-21 22:08:21 -07:00
Neale Pickett 3a11cc65ef Remove a couple ambiguous letters 2019-02-21 19:40:48 -07:00
Neale Pickett 45c0cad5d4 Better token generation 2019-02-21 19:38:53 -07:00
Neale Pickett e68a041f33 Add basic authentication and remove legacy html responses 2019-02-21 23:00:06 +00:00
Neale Pickett 97a7e09f35 Devel server using themes 2018-10-03 01:21:54 +00:00
Neale Pickett 68b3cc6218 Move the idea of "tokens" into the client 2018-10-02 21:54:22 +00:00
Neale Pickett 25a12c00c2 Note in generated HTML that you do not need to use generated HTML 2018-10-02 21:34:54 +00:00
Neale Pickett d1b41dd8aa Stop trying to put static files in the binary 2018-09-27 23:12:29 +00:00
Neale Pickett fab2470975 Merge branch 'master' of https://github.com/dirtbags/moth 2018-09-24 20:00:21 +00:00
Neale Pickett 82d029b357 Generate proper JSON 2018-09-24 20:00:18 +00:00
Neale Pickett 1b4767543b Merge branch 'mothv3' 2018-09-23 03:38:32 +00:00
Neale Pickett 909271549c Fix puzzles on iOS 2018-09-21 23:45:28 +00:00
Neale Pickett b25b87fa85 Fix scoreboard formatting and iframe styling 2018-09-21 20:29:05 +00:00
Neale Pickett 6ad8b41047 Friendler error message if you got the right answer 2018-09-20 20:44:56 +00:00
Neale Pickett 55800efe3f Fix inline images, only award to extant teams 2018-09-20 20:42:24 +00:00
Neale Pickett e147839966 Documentation updates 2018-09-20 16:15:34 +00:00
Neale Pickett e460f5b6b3 Cache points.json and puzzles.json 2018-09-20 03:44:34 +00:00
Neale Pickett bc6b373659 Dockerize and cleanup 2018-09-20 00:18:04 +00:00
Neale Pickett 21902ce8e4 I think I'm done. 2018-09-19 23:56:26 +00:00
Neale Pickett 5075bb601d Everything but puzzle content serving 2018-09-19 03:29:05 +00:00
Neale Pickett 7942f4fc5a Add scoreboard plus formatting tweaks 2018-09-19 00:22:03 +00:00
Neale Pickett 1fdba38ad3 Basic rendering of open puzzles 2018-09-18 03:32:24 +00:00
Neale Pickett 2dc0b0690f New rule: (category, points) must be unique across the contest. No more having 2 tokens in a category with the same point value. 2018-09-18 00:06:29 +00:00
Neale Pickett 4c3fe34936 Check for duplicate points 2018-09-18 00:02:44 +00:00
Neale Pickett 78f2e2a79c Flesh out remaining handlers
I think at this point we just need to drop in text for puzzle.html, puzzle-list.html, and scoreboard.html,
and we'll have a working server.
2018-09-17 23:40:05 +00:00
Neale Pickett 5b018eab42 Moving toward a working server 2018-09-17 23:00:08 +00:00
Neale Pickett 61c1129e0f A passable start at a go-based mothd 2018-09-15 00:24:48 +00:00
Neale Pickett ec2483f4c9 Mothball work 2018-05-10 03:52:52 +00:00