mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-31 04:03:40 +00:00
pass settings args
This commit is contained in:
@@ -170,13 +170,13 @@ appMain = do
|
|||||||
useEnv
|
useEnv
|
||||||
|
|
||||||
-- Generate the foundation from the settings
|
-- Generate the foundation from the settings
|
||||||
makeFoundation settings >>= startApp
|
makeFoundation settings >>= (startApp settings)
|
||||||
|
|
||||||
startApp :: AgentCtx -> IO ()
|
startApp :: AppSettings -> AgentCtx -> IO ()
|
||||||
startApp foundation = do
|
startApp settings foundation = do
|
||||||
-- set up ssl certificates
|
-- set up ssl certificates
|
||||||
putStrLn @Text "Setting up SSL"
|
putStrLn @Text "Setting up SSL"
|
||||||
_ <- setupSsl <$> getAppSettings
|
_ <- setupSsl settings
|
||||||
putStrLn @Text "SSL Setup Complete"
|
putStrLn @Text "SSL Setup Complete"
|
||||||
startWeb foundation
|
startWeb foundation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user