mirror of
https://github.com/aelve/guide.git
synced 2024-12-24 21:35:06 +03:00
Set a 1MB limit on requests
This commit is contained in:
parent
5cff313a2e
commit
53025ef9ad
@ -294,7 +294,8 @@ main = do
|
||||
EKG.Gauge.set textGauge (fromIntegral textLength)
|
||||
threadDelay (1000000 * 60)
|
||||
-- Run the server
|
||||
let config = defaultSpockCfg () PCNoDatabase db
|
||||
let config = (defaultSpockCfg () PCNoDatabase db) {
|
||||
spc_maxRequestSize = Just (1024*1024) }
|
||||
runSpock 8080 $ spock config $ do
|
||||
middleware (EKG.metrics waiMetrics)
|
||||
middleware (staticPolicy (addBase "static"))
|
||||
|
Loading…
Reference in New Issue
Block a user