diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 17:40:30 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 17:40:30 +0300 |
| commit | 51fc58f03b7aa60ae59bfae4c385438425218c92 (patch) | |
| tree | b52cc88ebe3de57be112d62bcde1017330c955fc /backend | |
| parent | frontend: update profile on delete run (diff) | |
| download | lphub-51fc58f03b7aa60ae59bfae4c385438425218c92.tar.gz lphub-51fc58f03b7aa60ae59bfae4c385438425218c92.tar.bz2 lphub-51fc58f03b7aa60ae59bfae4c385438425218c92.zip | |
backend: specify 250mb limit
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |