diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-18 13:56:19 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-18 13:56:19 +0300 |
| commit | 3a65bca1468acffb974cde31fab3ba2c897a4184 (patch) | |
| tree | b02018a44851a0ed802ce6c2802e388fafdb20f5 /backend/main.go | |
| parent | backend: check map wr count by cm category (diff) | |
| download | lphub-3a65bca1468acffb974cde31fab3ba2c897a4184.tar.gz lphub-3a65bca1468acffb974cde31fab3ba2c897a4184.tar.bz2 lphub-3a65bca1468acffb974cde31fab3ba2c897a4184.zip | |
backend: increase file limit to 500mb
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/main.go b/backend/main.go index 306823c..e693d15 100644 --- a/backend/main.go +++ b/backend/main.go | |||
| @@ -51,5 +51,6 @@ func main() { | |||
| 51 | router.NoRoute(func(c *gin.Context) { | 51 | router.NoRoute(func(c *gin.Context) { |
| 52 | c.File("../frontend/build/index.html") | 52 | c.File("../frontend/build/index.html") |
| 53 | }) | 53 | }) |
| 54 | router.MaxMultipartMemory = 500 << 20 // 500 mb limit for demos | ||
| 54 | router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) | 55 | router.Run(fmt.Sprintf(":%s", os.Getenv("PORT"))) |
| 55 | } | 56 | } |