keter 2.3.6 → 2.5.0
raw patch · 7 files changed
+30/−7 lines, 7 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Keter.Common: ConfigPathDoesNotExist :: !FilePath -> KeterException
Files
- ChangeLog.md +17/−0
- keter.cabal +1/−1
- src/Keter/Common.hs +1/−0
- src/Keter/Config/V10.hs +1/−1
- src/Keter/Main.hs +6/−3
- src/Keter/Proxy.hs +3/−1
- src/main/keter.hs +1/−1
ChangeLog.md view
@@ -1,5 +1,22 @@ # Changelog +## 2.5.0++- Fix parsing of keter YAML config key: `healthcheck-path` (as already+ documented) instead of orphan `app-crash-hook`. [347](https://github.com/snoyberg/keter/pull/347)++## 2.4.1++- Fix misleading usage message and silent directory creation when the+ config path does not exist. The argument is now described as a keter+ home directory or config file, and a path that is neither an existing+ file nor an existing directory is reported as an error instead of being+ silently adopted as the keter home directory. [199](https://github.com/snoyberg/keter/issues/199)++## 2.4.0++- HTTP responses no longer contain the Server header. [338](https://github.com/snoyberg/keter/issues/338)+ ## 2.3.6 - Widen `aeson` upper bound to allow 2.3.x for Stackage compatibility
keter.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: keter-version: 2.3.6+version: 2.5.0 synopsis: Web application deployment manager, focusing on Haskell web frameworks. It mitigates downtime.
src/Keter/Common.hs view
@@ -65,6 +65,7 @@ | NoPortsAvailable | InvalidConfigFile Data.Yaml.ParseException | InvalidKeterConfigFile !FilePath !Data.Yaml.ParseException+ | ConfigPathDoesNotExist !FilePath | CannotReserveHosts !AppId !(Map Host AppId) | FileNotExecutable !FilePath | ExecutableNotFound !FilePath
src/Keter/Config/V10.hs view
@@ -201,7 +201,7 @@ <*> o .:? "missing-host-response-file" <*> o .:? "proxy-exception-response-file" <*> o .:? "rotate-logs" .!= True- <*> o .:? "app-crash-hook"+ <*> o .:? "healthcheck-path" <*> o .:? "graceful-drain-micros" -- | Whether we should force redirect to HTTPS routes.
src/Keter/Main.hs view
@@ -83,15 +83,18 @@ -> ReaderT KeterConfig m a -> m a runKeterConfigReader input ctx = do- exists <- liftIO $ doesFileExist input+ isFile <- liftIO $ doesFileExist input+ isDir <- liftIO $ doesDirectoryExist input config <- liftIO $- if exists+ if isFile then do eres <- decodeFileRelative input case eres of Left e -> throwIO $ InvalidKeterConfigFile input e Right x -> return x- else return defaultKeterConfig { kconfigDir = input }+ else if isDir+ then return defaultKeterConfig { kconfigDir = input }+ else throwIO $ ConfigPathDoesNotExist input runReaderT ctx config -- | Running the Keter logger requires a context with access to a KeterConfig, hence the
src/Keter/Proxy.hs view
@@ -132,7 +132,9 @@ (warp host port), True) withClient isSecure >>= run . gzip def{gzipFiles = GzipPreCompressed GzipIgnore} where- warp host port = Warp.setHost host $ Warp.setPort port Warp.defaultSettings+ warp host port = Warp.setHost host+ $ Warp.setPort port+ $ Warp.setServerName "" Warp.defaultSettings connectClientCertificates :: (ByteString -> IO (Maybe (ProxyAction, TLS.Credentials))) -> Bool -> WarpTLS.TLSSettings -> WarpTLS.TLSSettings connectClientCertificates hl session s =
src/main/keter.hs view
@@ -23,4 +23,4 @@ printUsage :: IO () printUsage = do pn <- getProgName- error $ "Usage: " ++ pn ++ " <config file>"+ error $ "Usage: " ++ pn ++ " <keter-home-directory | config-file>"