Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2a93e469db
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (37 sloc) 1.551 kB
module Config.App (
useLowerCasePaths,
Connection,
customSetupFilters,
customPreFilters,
customPostFilters,
logLevel
) where
import System.Log.Logger
import Turbinado.Controller.Monad
import Turbinado.Environment.Types
import Turbinado.Environment.Session.CookieSession
----------------------------------------------------------------
-- Environment settings
----------------------------------------------------------------
-- | Determines whether the server uses URLs of the form FooBar/BimBam or foo_bar/bim_bam.
-- The Controllers and Views must still be named FooBar.hs and BimBam.hs.
useLowerCasePaths = True
----------------------------------------------------------------
-- Session settings
----------------------------------------------------------------
sessionOpts = [ ("cookie-name", "turb-sess")
, ("cipher-key", "super secret phrase")
]
----------------------------------------------------------------
-- RequestHandler Filter List additions
----------------------------------------------------------------
customSetupFilters :: [Controller ()]
customSetupFilters = []
customPreFilters :: [Controller ()]
customPreFilters = [retrieveSession sessionOpts]
customPostFilters :: [Controller ()]
customPostFilters = [persistSession sessionOpts]
----------------------------------------------------------------
-- Logging
----------------------------------------------------------------
logLevel = DEBUG -- DEBUG < INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY
Jump to Line
Something went wrong with that request. Please try again.