Skip to content
Snippets Groups Projects
Commit 79305788 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Single node staging grid configuration on AWS EC2

parent c262684e
No related branches found
No related tags found
1 merge request!2Testing and production grids
let
# Pin the deployment package-set to a specific version of nixpkgs. This is
# NixOS 19.03 as of Aug 28 2019. There's nothing special about it. It's
# just recent at the time of development. It can be upgraded when there is
# value in doing so.
pkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz";
sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14";
}) {};
in
{
network = {
inherit pkgs;
description = "PrivateStorage.io Staging Grid";
};
"staging000" = import ./staging000.nix {
publicIPv4 = "3.123.26.90";
publicStoragePort = 8898;
};
}
{
imports = [
<nixpkgs/nixos/modules/virtualisation/amazon-image.nix>
];
config.ec2.hvm = true;
}
{ publicIPv4, publicStoragePort }:
{ imports = [
./staging000-hardware.nix
../nixos/modules/private-storage.nix
];
services.private-storage.enable = true;
services.private-storage.tahoe.node."tub.port" = "tcp:${toString publicStoragePort}";
services.private-storage.tahoe.node."tub.location" = "tcp:${publicIPv4}:${toString publicStoragePort}";
networking.firewall.allowedTCPPorts = [ publicStoragePort ];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment