module ProjectM36.Server.Config where
import ProjectM36.Client
data ServerConfig = ServerConfig { persistenceStrategy :: PersistenceStrategy,
checkFS :: Bool,
databaseName :: DatabaseName,
bindHost :: Hostname,
bindPort :: Port,
ghcPkgPaths :: [String],
perRequestTimeout :: Int,
testMode :: Bool
}
deriving (Show)
defaultServerConfig :: ServerConfig
defaultServerConfig = ServerConfig { persistenceStrategy = NoPersistence,
checkFS = True,
databaseName = "base",
bindHost = "127.0.0.1",
bindPort = 6543,
ghcPkgPaths = [],
perRequestTimeout = 0,
testMode = False
}