From 6624cb1c5a16e8524d35ae84e717f4c3a531c5c4 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 1 Nov 2019 09:58:30 +0100 Subject: [PATCH] Less connections seems more secure --- app/AppTypes/Configuration.hs | 2 +- config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/AppTypes/Configuration.hs b/app/AppTypes/Configuration.hs index e06dd01..fcd47b4 100644 --- a/app/AppTypes/Configuration.hs +++ b/app/AppTypes/Configuration.hs @@ -30,7 +30,7 @@ instance FromYAML ServerConfig where <*> m .: "currency" <*> m .: "listen_port" <*> m .:? "listen_host" .!= "127.0.0.1" - <*> m .:? "max_connections_per_client" .!= 100 + <*> m .:? "max_connections_per_client" .!= 10 newtype Options = Options { optConfigLocation :: T.Text diff --git a/config.yaml b/config.yaml index bb5ece7..8ac35fa 100644 --- a/config.yaml +++ b/config.yaml @@ -5,5 +5,5 @@ db_user: "mateamt" db_passwd: "mateamt" listen_port: 8000 #listen_host: "127.0.0.1" -#max_connections_per_client: 100 +#max_connections_per_client: 10 currency: "€"