From 51fc58f03b7aa60ae59bfae4c385438425218c92 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:40:30 +0300 Subject: backend: specify 250mb limit --- RULES.md | 1 + backend/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RULES.md b/RULES.md index 3645d8f..ffd344d 100644 --- a/RULES.md +++ b/RULES.md @@ -22,6 +22,7 @@ Both `.vtf` and `.vmt` files associated with these textures can be modified. - Proof of your run must be recorded using demos. To start recording, type `record ` when entering the map, or use the SAR plugin with the command `sar_record_at 0`. - A valid demo begins when the player can move and ends when the player touches the end flags. - For cooperative runs, both players must submit their demos. +- For technical reasons, there is a 250 MB limit for demo files. If you have a demo file bigger than 250 MB that you need to submit, please contact an admin in the Discord server. ### Console Commands & Cheats diff --git a/backend/main.go b/backend/main.go index 26aa852..edbe7f8 100644 --- a/backend/main.go +++ b/backend/main.go @@ -47,6 +47,6 @@ func main() { // router.NoRoute(func(c *gin.Context) { // c.File("../frontend/build/index.html") // }) - router.MaxMultipartMemory = 500 << 20 // 500 mb limit for demos + router.MaxMultipartMemory = 250 << 20 // 250 mb limit for demos router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) } -- cgit v1.2.3