summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/storj/client.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-03-12 20:09:10 +0100
committermakefu <github@syntax-fehler.de>2021-03-12 20:09:20 +0100
commit27e182f7f878721c665b92b287e0d5f8da5bd06a (patch)
tree2fd1a29dc860327ca7cfacfe8523ad4825c876a3 /makefu/2configs/storj/client.nix
parentcf0cdbc33d6751bd5c8d48ec0433b7db299a292d (diff)
ma: deploy storj on omo, forward via gum
Diffstat (limited to 'makefu/2configs/storj/client.nix')
-rw-r--r--makefu/2configs/storj/client.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/makefu/2configs/storj/client.nix b/makefu/2configs/storj/client.nix
new file mode 100644
index 000000000..e37e2ce23
--- /dev/null
+++ b/makefu/2configs/storj/client.nix
@@ -0,0 +1,27 @@
+{ lib, ... }:
+{
+ networking.firewall.allowedTCPPorts = [ 28967 ];
+ virtualisation.oci-containers.containers.storj-storagenode = {
+ image = "storjlabs/storagenode:latest";
+ ports = [
+ # TODO: omo ip
+ "0.0.0.0:28967:28967"
+ "127.0.0.1:14002:14002"
+ ];
+ environment = {
+ # SETUP = "true"; # must be run only once ...
+ WALLET = "0xeD0d2a2B33F6812b45d2D9FF7a139A3fF65a24C0";
+ EMAIL = "storj.io@syntax-fehler.de";
+ ADDRESS = "euer.krebsco.de:28967";
+ STORAGE = "3TB";
+ };
+ volumes = [
+ "/media/cryptX/lib/storj/identity:/app/identity"
+ "/media/cryptX/lib/storj/storage:/app/config"
+ ];
+ };
+ systemd.services.docker-storj-storagenode.serviceConfig = {
+ StandardOutput = lib.mkForce "journal";
+ StandardError = lib.mkForce "journal";
+ };
+}