aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 17:40:30 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 17:40:30 +0300
commit51fc58f03b7aa60ae59bfae4c385438425218c92 (patch)
treeb52cc88ebe3de57be112d62bcde1017330c955fc
parentfrontend: update profile on delete run (diff)
downloadlphub-51fc58f03b7aa60ae59bfae4c385438425218c92.tar.gz
lphub-51fc58f03b7aa60ae59bfae4c385438425218c92.tar.bz2
lphub-51fc58f03b7aa60ae59bfae4c385438425218c92.zip
backend: specify 250mb limit
-rw-r--r--RULES.md1
-rw-r--r--backend/main.go2
2 files changed, 2 insertions, 1 deletions
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.
22- Proof of your run must be recorded using demos. To start recording, type `record <demoname>` when entering the map, or use the SAR plugin with the command `sar_record_at 0`. 22- Proof of your run must be recorded using demos. To start recording, type `record <demoname>` when entering the map, or use the SAR plugin with the command `sar_record_at 0`.
23- A valid demo begins when the player can move and ends when the player touches the end flags. 23- A valid demo begins when the player can move and ends when the player touches the end flags.
24- For cooperative runs, both players must submit their demos. 24- For cooperative runs, both players must submit their demos.
25- 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.
25 26
26### Console Commands & Cheats 27### Console Commands & Cheats
27 28
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() {
47 // router.NoRoute(func(c *gin.Context) { 47 // router.NoRoute(func(c *gin.Context) {
48 // c.File("../frontend/build/index.html") 48 // c.File("../frontend/build/index.html")
49 // }) 49 // })
50 router.MaxMultipartMemory = 500 << 20 // 500 mb limit for demos 50 router.MaxMultipartMemory = 250 << 20 // 250 mb limit for demos
51 router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) 51 router.Run(fmt.Sprintf(":%s", os.Getenv("PORT")))
52} 52}