Commit Graph

179 Commits

Author SHA1 Message Date
evanpelle ea628570b2 have nginx cache index for 1s. (#224)
This is required for A B deployments, the browser wasn't updating due to
conditional caches
2025-03-12 11:03:28 -07:00
evanpelle b1035a8e77 update to hetzner deployment (#220) 2025-03-12 09:17:27 -07:00
evanpelle 5dc00bc3ab use git commit hash verification when replaying archived games (#204) 2025-03-10 12:40:36 -07:00
evanpelle 61cfe7102c update error modal to show game id (#197) 2025-03-09 19:16:57 -07:00
evanpelle 33292aec5c feat: replay archived games, gamestate hash verification (#195)
create endpoint to load archived game. when joining game client first
checks if the game is active, if not it requests the game archive from
the server. the archive is sent to LocalServer to replay the game
locally. Every 10 ticks a hash is stored on the archive, and during
replay the LocalServer verifies this hash.
2025-03-09 14:24:39 -07:00
ilan schemoul 1b76c46bc5 feat: remove LocalPersistantStats so we locally save GameRecords
GameRecords also now include PlayerStats
2025-03-08 17:39:41 +01:00
Evan 2b8cc2cf28 add mars map to rotation 2025-03-07 21:43:32 -08:00
BeGj 619891741f linting 2025-03-07 16:53:10 +00:00
Evan a56ea5f786 don't check if public when starting game 2025-03-07 07:24:18 -08:00
Evan 56e84c3679 copy .env file to instance 2025-03-06 20:49:59 -08:00
Evan edcfac2fe7 give public lobbies smoother countdown, use admin token in server. 2025-03-06 19:43:56 -08:00
Evan fc73ed46cb remove oceania from map rotation 2025-03-06 16:16:41 -08:00
Evan cf702bcbb4 update gatekeeper 2025-03-06 15:54:23 -08:00
Evan 4c8eeb0cc1 merge branch v0.17.3 2025-03-06 15:46:57 -08:00
Evan 1a9176779f remove no cache from /api/env 2025-03-06 10:46:23 -08:00
Evan dacd9607e4 update ttl, use file based hashing to prevent stale data. 2025-03-05 20:14:49 -08:00
Evan 3a0bc594ae use api prefix 2025-03-05 18:04:22 -08:00
Evan d2dd262220 update map=>mapType map is keyword 2025-03-05 16:48:52 -08:00
Evan 92594c48d0 update end => end_time, end is reserved keyword 2025-03-05 14:51:56 -08:00
Evan 303180f51f update config, fix s3 region 2025-03-05 13:50:32 -08:00
Evan 1a0729a427 move out -> static 2025-03-05 13:24:54 -08:00
Evan 2b26cfbbc9 update aws deployment, have client get env from server 2025-03-05 12:37:37 -08:00
Evan bf5b3ef993 use S3 & reshift to archive 2025-03-05 07:34:07 -08:00
Evan fa5ba935ff update gatekeeper 2025-03-04 16:35:36 -08:00
Evan e288b5d5fa use gatekeeper wrapper to avoid using promise 2025-03-04 16:32:29 -08:00
Evan 8c8fa87821 update gatekeepr 2025-03-04 08:43:58 -08:00
Evan 6a22d58281 use admin key token for admin auth 2025-03-04 08:43:17 -08:00
Evan 9fd1203d50 format HostLobbyModal 2025-03-03 14:46:29 -08:00
Evan 1132dc5ed9 use S3 & reshift to archive 2025-03-03 11:53:28 -08:00
Evan bcf121788f fix gatekeeper name 2025-03-02 12:16:19 -08:00
Evan 24362d0b8c remove rate limiter, let gatekeeper handle it 2025-03-02 09:57:16 -08:00
Evan 5e09c0db47 fix build errors from cherry-pick 2025-03-02 09:51:25 -08:00
Evan d8841924e2 update gatekeeper 2025-03-02 09:39:54 -08:00
Evan 74ce3b3187 Update to Gatekeeper 2025-03-02 09:39:54 -08:00
Evan d09d4695f2 Added gatekeeper submodule 2025-03-02 09:39:54 -08:00
Evan 439777f360 Removed security-middleware submodule 2025-03-02 09:39:54 -08:00
Evan 10873baf74 bugfix: use gameCreationRate to schedule games 2025-03-02 09:39:54 -08:00
Evan daa9820c32 added security middleware 2025-03-02 09:39:54 -08:00
Evan 0b34e2b5e6 Add SecurityMiddleware 2025-03-02 09:39:54 -08:00
Evan 85abcd169e fix lobby not found bug 2025-03-02 09:39:54 -08:00
Evan bad74a0488 schedule game duration based on time of day 2025-03-02 09:39:54 -08:00
Evan 3b492df56b set trust proxy to 3 2025-03-02 09:39:54 -08:00
Evan ccc2140f2d don't log each hash 2025-03-02 09:39:36 -08:00
Evan b449d6ef9b don't send desync message to client until fixed. 2025-03-02 09:39:36 -08:00
Evan a9caee6323 make GameManager more efficient 2025-03-02 09:39:36 -08:00
Evan 38365fd9d0 configure nginx to run in container 2025-03-02 09:39:36 -08:00
Evan a029b4277f use node cluster to shard server 2025-03-02 09:39:09 -08:00
Evan ff33c2db50 have server check hashes, crash game if out of sync 2025-03-02 09:29:10 -08:00
Evan cd5e2dfbb5 only limit ips in public games 2025-03-02 09:29:10 -08:00
Evan e0938253df send game hash to server each second 2025-03-02 09:29:10 -08:00