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

put the storage server port number into a configuration file

parent 62a829d5
Branches
No related tags found
1 merge request!2Testing and production grids
{ "publicStoragePort": 8898
}
...@@ -7,7 +7,7 @@ let ...@@ -7,7 +7,7 @@ let
url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"; url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz";
sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"; sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14";
}) {}; }) {};
publicStoragePort = 8898; cfg = pkgs.lib.trivial.importJSON ./grid.config.json;
in in
{ {
network = { network = {
...@@ -17,12 +17,12 @@ in ...@@ -17,12 +17,12 @@ in
"staging000" = import ./staging000.nix { "staging000" = import ./staging000.nix {
publicIPv4 = "3.123.26.90"; publicIPv4 = "3.123.26.90";
inherit publicStoragePort; inherit (cfg) publicStoragePort;
}; };
"staging001" = import ./staging001.nix { "staging001" = import ./staging001.nix {
publicIPv4 = "209.95.51.251"; publicIPv4 = "209.95.51.251";
inherit publicStoragePort; inherit (cfg) publicStoragePort;
}; };
"staging002" = import ./staging002.nix; "staging002" = import ./staging002.nix;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment