forked from DGNum/colmena
README.md: Add example usage of keyCommand
This commit is contained in:
parent
52622ecd27
commit
28b635a6e8
1 changed files with 4 additions and 4 deletions
|
@ -181,10 +181,10 @@ For example, to deploy DNS-01 credentials for use with `security.acme`:
|
||||||
shared-box = {
|
shared-box = {
|
||||||
security.acme.certs."my-site.tld".credentialsFile = "/run/keys/acme-credentials.secret";
|
security.acme.certs."my-site.tld".credentialsFile = "/run/keys/acme-credentials.secret";
|
||||||
deployment.keys."acme-credentials.secret" = {
|
deployment.keys."acme-credentials.secret" = {
|
||||||
text = ''
|
# Alternatively, `text` (string) or `keyFile` (path to file)
|
||||||
PDNS_API_URL=https://dns.provider
|
# may be specified.
|
||||||
PDNS_API_KEY=top-secret-api-key
|
keyCommand = [ "vault" "read" "-field=env" "secret/dns01" ];
|
||||||
'';
|
|
||||||
destDir = "/run/keys"; # Default: /run/keys
|
destDir = "/run/keys"; # Default: /run/keys
|
||||||
user = "acme"; # Default: root
|
user = "acme"; # Default: root
|
||||||
group = "nginx"; # Default: root
|
group = "nginx"; # Default: root
|
||||||
|
|
Loading…
Reference in a new issue