mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-19 15:41:56 +01:00
Force SSL after metrics middleware (not before)
This commit is contained in:
parent
b945ad449c
commit
d282ade792
@ -75,8 +75,8 @@ makeApplication foundation = do
|
|||||||
-- Create the WAI application and apply middlewares
|
-- Create the WAI application and apply middlewares
|
||||||
appPlain <- toWaiAppPlain foundation
|
appPlain <- toWaiAppPlain foundation
|
||||||
|
|
||||||
let middleware = forceSSL' (appSettings foundation)
|
let middleware = prometheus def
|
||||||
. prometheus def
|
. forceSSL' (appSettings foundation)
|
||||||
. logWare
|
. logWare
|
||||||
. defaultMiddlewaresNoLogging
|
. defaultMiddlewaresNoLogging
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user