1
1
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:
Artyom 2016-03-19 13:11:17 +03:00
parent 5cff313a2e
commit 53025ef9ad

View File

@ -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"))