tywin: storj: enable on d3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2023-09-08 20:51:42 +01:00
parent 679e23eb62
commit 1034d6a568

View File

@ -46,6 +46,7 @@
fileSystems."/mnt/d0".options = [ "x-systemd.mount-timeout=3m" ]; fileSystems."/mnt/d0".options = [ "x-systemd.mount-timeout=3m" ];
fileSystems."/mnt/d1".options = [ "x-systemd.mount-timeout=3m" ]; fileSystems."/mnt/d1".options = [ "x-systemd.mount-timeout=3m" ];
fileSystems."/mnt/d2".options = [ "x-systemd.mount-timeout=3m" ]; fileSystems."/mnt/d2".options = [ "x-systemd.mount-timeout=3m" ];
fileSystems."/mnt/d3".options = [ "x-systemd.mount-timeout=3m" ];
## Backups ## Backups
### Git ### Git
@ -224,25 +225,16 @@
identityDir = "/mnt/d${toString index}/storj/identity"; identityDir = "/mnt/d${toString index}/storj/identity";
authorizationTokenFile = config.age.secrets."storj/auth".path; authorizationTokenFile = config.age.secrets."storj/auth".path;
serverPort = 28967 + 1 + index; serverPort = 28967 + index;
externalAddress = "d${toString index}.tywin.storj.hillion.co.uk:${toString (28967 + 1 + index)}"; externalAddress = "d${toString index}.tywin.storj.hillion.co.uk:${toString (28967 + index)}";
consoleAddress = "100.115.31.91:${toString (14002 + 1 + index)}"; consoleAddress = "100.115.31.91:${toString (14002 + index)}";
storage = "1000GB"; storage = "1000GB";
}; };
}; };
instances = builtins.genList (x: x) 3; instances = builtins.genList (x: x) 4;
in in
builtins.listToAttrs (builtins.map mkStorj instances) // { builtins.listToAttrs (builtins.map mkStorj instances);
zfs = {
configDir = "/data/storj/config";
identityDir = "/data/storj/identity";
storage = "500GB";
consoleAddress = "100.115.31.91:14002";
serverPort = 28967;
externalAddress = "zfs.tywin.storj.hillion.co.uk:28967";
};
};
## Downloads ## Downloads
custom.services.downloads = { custom.services.downloads = {
@ -262,10 +254,10 @@
## Firewall ## Firewall
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
80 # Caddy (restic.tywin.storage.ts.) 80 # Caddy (restic.tywin.storage.ts.)
14002 # Storj Dashboard (zfs.) 14002 # Storj Dashboard (d0.)
14003 # Storj Dashboard (d0.) 14003 # Storj Dashboard (d1.)
14004 # Storj Dashboard (d1.) 14004 # Storj Dashboard (d2.)
14005 # Storj Dashboard (d1.) 14005 # Storj Dashboard (d3.)
]; ];
}; };
} }