Skip to content

Commit

Permalink
fix publicId generation
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Nov 7, 2019
1 parent b2ddcc5 commit b5b06af
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions nixos/jormungandr.nix
Expand Up @@ -133,20 +133,17 @@ in {
};

publicId = mkOption {
type = types.str;
default = lib.fileContents (pkgs.runCommand "jormungandrPrivateId" {buildInputs = [ cfg.jcliPackage ]; } ''
echo "echo generate key for ${cfg.publicAddress}"
openssl rand -hex 24 > $out
'');
type = types.nullOr types.str;
default = null;
description = ''
Needed to make a node publicly reachable.
Generate with `jcli key generate --type Ed25519`.
Generate with `openssl rand -hex 24`.
'';
};

publicAddress = mkOption {
type = types.str;
default = "/ip4/127.0.0.1/tcp/8606";
type = types.nullOr types.str;
default = null;
description = ''
the address to listen from and accept connection from.
This is the public address that will be distributed to other peers of the network
Expand Down Expand Up @@ -181,6 +178,7 @@ in {
Address to listen on for rest endpoint.
'';
};

rest.cors.allowedOrigins = mkOption {
type = types.listOf types.str;
default = [];
Expand Down

0 comments on commit b5b06af

Please sign in to comment.