refactor: move logStdout/corsPolicy to Middleware
* remove configQuiet from Config configQuiet was not an end user setting. The logging setup is now an internal parameter. * move proxy uri validation to Private dir
This commit is contained in:
committed by
Steve Chavez
parent
0ff05edd16
commit
e272ea47be
+6
-2
@@ -30,13 +30,16 @@ import System.IO (BufferMode (..), hSetBuffering)
|
||||
import PostgREST.App (postgrest)
|
||||
import PostgREST.Auth (parseSecret)
|
||||
import PostgREST.Config (AppConfig (..), configPoolTimeout',
|
||||
prettyVersion, readAppConfig, readPathShowHelp, loadDbUriFile, loadSecretFile)
|
||||
loadDbUriFile, loadSecretFile,
|
||||
prettyVersion, readAppConfig,
|
||||
readPathShowHelp)
|
||||
import PostgREST.DbStructure (getDbStructure, getPgVersion)
|
||||
import PostgREST.Error (PgError (PgError), checkIsFatal,
|
||||
errorPayload)
|
||||
import PostgREST.OpenAPI (isMalformedProxyUri)
|
||||
import PostgREST.Types (ConnectionStatus (..), DbStructure,
|
||||
PgVersion (..), minimumPgVersion)
|
||||
LogSetup (..), PgVersion (..),
|
||||
minimumPgVersion)
|
||||
import Protolude hiding (hPutStrLn, head, toS)
|
||||
import Protolude.Conv (toS)
|
||||
|
||||
@@ -284,6 +287,7 @@ main = do
|
||||
|
||||
let postgrestApplication =
|
||||
postgrest
|
||||
LogStdout
|
||||
conf
|
||||
refDbStructure
|
||||
pool
|
||||
|
||||
Reference in New Issue
Block a user