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

Support configuration for the issuer location.

parent 51d93672
No related branches found
No related tags found
1 merge request!8Support configuration for the issuer location.
...@@ -56,6 +56,14 @@ in ...@@ -56,6 +56,14 @@ in
The port number on which to service storage clients. The port number on which to service storage clients.
''; '';
}; };
services.private-storage.issuerRootURL = lib.mkOption
{ default = "https://issuer.privatestorage.io/";
type = lib.types.str;
example = lib.literalExample "https://example.invalid/";
description = ''
The URL of the Ristretto issuer service to announce.
'';
};
}; };
# Define configuration based on values given for our options - starting with # Define configuration based on values given for our options - starting with
...@@ -96,9 +104,8 @@ in ...@@ -96,9 +104,8 @@ in
# Turn on our plugin. # Turn on our plugin.
plugins = "privatestorageio-zkapauthz-v1"; plugins = "privatestorageio-zkapauthz-v1";
}; };
# It doesn't have any configuration *yet*.
"storageserver.plugins.privatestorageio-zkapauthz-v1" = "storageserver.plugins.privatestorageio-zkapauthz-v1" =
{ { "ristretto-issuer-root-url" = cfg.issuerRootURL;
}; };
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment