diff options
author | makefu <github@syntax-fehler.de> | 2023-07-28 22:24:15 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-07-28 22:24:15 +0200 |
commit | 060a8f28fa1fc648bdf66afb31a5d1efac868837 (patch) | |
tree | 2b354eacc7897365ee45244fe7a51720e0d0333f /makefu/2configs/storj | |
parent | cbfcc890e3b76d942b927809bf981a5fa7289e6a (diff) |
makefu: move out to own repo, add vacation-note
Diffstat (limited to 'makefu/2configs/storj')
-rw-r--r-- | makefu/2configs/storj/client.nix | 45 | ||||
-rw-r--r-- | makefu/2configs/storj/forward-port.nix | 22 |
2 files changed, 0 insertions, 67 deletions
diff --git a/makefu/2configs/storj/client.nix b/makefu/2configs/storj/client.nix deleted file mode 100644 index d48319838..000000000 --- a/makefu/2configs/storj/client.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ lib, ... }: -let - port = "14002"; - internal-ip = "192.168.111.11"; -in -{ - 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:${port}:${port}" - ]; - 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"; - }; - - services.nginx.virtualHosts."storj" = { - serverAliases = [ - "storj.lan" - ]; - - locations."/".proxyPass = "http://localhost:${port}"; - locations."/".proxyWebsockets = true; - extraConfig = '' - if ( $server_addr != "${internal-ip}" ) { - return 403; - } - ''; - }; -} diff --git a/makefu/2configs/storj/forward-port.nix b/makefu/2configs/storj/forward-port.nix deleted file mode 100644 index 213f77470..000000000 --- a/makefu/2configs/storj/forward-port.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - networking.firewall.allowedTCPPorts = [ 28967 ]; - #networking.nat.forwardPorts = [ - # { # storj - # destination = "10.243.0.89:28967"; - # proto = "tcp"; - # sourcePort = 28967; - # } - #]; - services.nginx.appendConfig = '' - stream { - upstream storj { - server omo.r:28967; - } - - server { - listen 28967; - proxy_pass storj; - } - } - ''; -} |