diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-14 16:42:26 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-14 16:59:20 -0400 |
commit | a41cbda751d515032859d72656fda3d219300ecb (patch) | |
tree | fdc5324c56e0b67b6e74826cd6b8cd742984ecf0 /Types/Server.hs | |
parent | a68caf8b54b9d37deeaeddc6a28394d1587f1dc5 (diff) | |
download | keysafe-a41cbda751d515032859d72656fda3d219300ecb.tar.gz |
Store information about backed up keys in ~/.keysafe/backup.log
This can be deleted by the user at any time, but it's useful in case a
server is known to be compromised, or a problem is found with keysafe's
implementation that makes a backup insecure.
This commit was sponsored by Nick Daly on Patreon.
Diffstat (limited to 'Types/Server.hs')
-rw-r--r-- | Types/Server.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Types/Server.hs b/Types/Server.hs new file mode 100644 index 0000000..dd06909 --- /dev/null +++ b/Types/Server.hs @@ -0,0 +1,16 @@ +{- Copyright 2016 Joey Hess <id@joeyh.name> + - + - Licensed under the GNU AGPL version 3 or higher. + -} + +module Types.Server where + +import Network.Wai.Handler.Warp (Port) + +type HostName = String + +data Server = Server + { serverName :: HostName + , serverPort :: Port + } + deriving (Show) |