fix(status): route status exempt from approot normalisation, might not fix the issue yet
This commit is contained in:
parent
1c5dc74edf
commit
074a33dc51
@ -137,6 +137,7 @@ yesodMiddleware = cacheControlMiddleware . storeBearerMiddleware . csrfMiddlewar
|
|||||||
case route of
|
case route of
|
||||||
MetricsR -> mzero
|
MetricsR -> mzero
|
||||||
HealthR -> mzero
|
HealthR -> mzero
|
||||||
|
StatusR -> mzero
|
||||||
InstanceR -> mzero
|
InstanceR -> mzero
|
||||||
AdminCrontabR -> mzero
|
AdminCrontabR -> mzero
|
||||||
_other -> return ()
|
_other -> return ()
|
||||||
@ -147,7 +148,7 @@ yesodMiddleware = cacheControlMiddleware . storeBearerMiddleware . csrfMiddlewar
|
|||||||
approotHost <- hoistMaybe $ approotScopeHost rApproot app
|
approotHost <- hoistMaybe $ approotScopeHost rApproot app
|
||||||
let doRedirect = do
|
let doRedirect = do
|
||||||
url <- approotRender rApproot route
|
url <- approotRender rApproot route
|
||||||
$logDebugS "normalizeApprootMiddleware" url
|
$logDebugS "normalizeApprootMiddleware redirect" url
|
||||||
redirect url
|
redirect url
|
||||||
if | approotHost /= reqHost
|
if | approotHost /= reqHost
|
||||||
, rApproot /= ApprootUserGenerated
|
, rApproot /= ApprootUserGenerated
|
||||||
|
|||||||
Reference in New Issue
Block a user