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

Support passing through pass-value configuration to tahoe.cfg

Also configure a new value on the staging grid
parent f669b30d
Branches
No related tags found
No related merge requests found
{ "publicStoragePort": 8898 { "publicStoragePort": 8898
, "ristrettoSigningKeyPath": "../../PrivateStorageSecrets/ristretto.signing-key" , "ristrettoSigningKeyPath": "../../PrivateStorageSecrets/ristretto.signing-key"
, "stripeSecretKeyPath": "../../PrivateStorageSecrets/privatestorageio-testing-stripe.secret" , "stripeSecretKeyPath": "../../PrivateStorageSecrets/privatestorageio-testing-stripe.secret"
, "pass-value": 1000000
, "issuerDomain": "payments.privatestorage-staging.com" , "issuerDomain": "payments.privatestorage-staging.com"
, "letsEncryptAdminEmail": "jean-paul@privatestorage.io" , "letsEncryptAdminEmail": "jean-paul@privatestorage.io"
, "allowedChargeOrigins": [ , "allowedChargeOrigins": [
......
...@@ -78,6 +78,15 @@ in ...@@ -78,6 +78,15 @@ in
The path to the Ristretto signing key for the service. The path to the Ristretto signing key for the service.
''; '';
}; };
services.private-storage.passValue = lib.mkOption
{ default = null;
type = lib.types.nullOr lib.types.int;
example = lib.literalExample (1000 * 1000);
description = ''
The bytes component of the bytes×time value of a single pass which
storage servers will use when making pricing decisions.
'';
};
}; };
# Define configuration based on values given for our options - starting with # Define configuration based on values given for our options - starting with
...@@ -126,7 +135,11 @@ in ...@@ -126,7 +135,11 @@ in
"storageserver.plugins.privatestorageio-zkapauthz-v1" = "storageserver.plugins.privatestorageio-zkapauthz-v1" =
{ "ristretto-issuer-root-url" = cfg.issuerRootURL; { "ristretto-issuer-root-url" = cfg.issuerRootURL;
"ristretto-signing-key-path" = cfg.ristrettoSigningKeyPath; "ristretto-signing-key-path" = cfg.ristrettoSigningKeyPath;
}; } // (
if cfg.passValue == null
then {}
else { "pass-value" = (toString cfg.passValue); }
);
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment