aboutsummaryrefslogtreecommitdiff
path: root/src/Sproxy/Config.hs
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-12-01 22:32:09 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-12-01 22:43:08 +0300
commitb0c5ffbe1d2dbbf1f9c460be0b4f18500c50a90f (patch)
tree41417f4dd08e3fc541b02ac07cc0e9494a8fceb5 /src/Sproxy/Config.hs
parented878508e2425ae902a7427b4e7726d35f8d29ce (diff)
downloadsproxy2-b0c5ffbe1d2dbbf1f9c460be0b4f18500c50a90f.tar.gz
BREAKING: Allow !include in config file
This changes semantics of these options: - key - oauth2.<provider>.client_secret They are no longer files, but strings. To read content from files, use !include. The point of being files or read from files is to segregate secrets from non-sensitive easily discoverable settings. With !include it is much more simple and flexible.
Diffstat (limited to 'src/Sproxy/Config.hs')
-rw-r--r--src/Sproxy/Config.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sproxy/Config.hs b/src/Sproxy/Config.hs
index 4cae025..e0f35a3 100644
--- a/src/Sproxy/Config.hs
+++ b/src/Sproxy/Config.hs
@@ -24,7 +24,7 @@ data ConfigFile = ConfigFile {
, cfSslCert :: Maybe FilePath
, cfSslKey :: Maybe FilePath
, cfSslCertChain :: [FilePath]
-, cfKey :: Maybe FilePath
+, cfKey :: Maybe String
, cfListen80 :: Maybe Bool
, cfHttpsPort :: Maybe Word16
, cfBackends :: [BackendConf]
@@ -83,7 +83,7 @@ instance FromJSON BackendConf where
data OAuth2Conf = OAuth2Conf {
oa2ClientId :: String
-, oa2ClientSecret :: FilePath
+, oa2ClientSecret :: String
} deriving (Show)
instance FromJSON OAuth2Conf where