summaryrefslogtreecommitdiffhomepage
path: root/Servers.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Servers.hs')
-rw-r--r--Servers.hs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Servers.hs b/Servers.hs
new file mode 100644
index 0000000..ab31838
--- /dev/null
+++ b/Servers.hs
@@ -0,0 +1,36 @@
+{- Copyright 2016 Joey Hess <id@joeyh.name>
+ -
+ - Licensed under the GNU AGPL version 3 or higher.
+ -}
+
+module Servers where
+
+import Types.Server
+import Types.Storage
+import Storage.Network
+
+-- | Keysafe's server list.
+--
+-- Note: Avoid removing servers from this list, as that will break
+-- restores. If necessary, a server can be set to Untrusted to prevent
+-- uploads to it.
+--
+-- Also, avoid changing the ServerName of any server, as that will
+-- cause any uploads queued under that name to not go through.
+serverList :: Maybe LocalStorageDirectory -> [Storage]
+serverList d =
+ [ mk Alternate $ Server (ServerName "keysafe.joeyh.name")
+ [ServerAddress "vzgrspuxbtnlrtup.onion" 4242]
+ "Provided by Joey Hess. Digital Ocean VPS, located in Indonesia"
+
+ , mk Alternate $ Server (ServerName "keysafe.puri.sm")
+ []
+ "Purism server is not yet deployed, but planned."
+
+ -- still being vetted
+ , mk Alternate $ Server (ServerName "thirdserver")
+ [ServerAddress "eqi7glyxe5ravak5.onion" 4242]
+ "Provided by Marek Isalski at Faelix. Currently located in UK, but planned move to CH"
+ ]
+ where
+ mk l s = networkStorage l d s