2023-10-10 15:21:16 +02:00
|
|
|
{ keyCommandEnv, ... }:
|
2023-10-10 04:14:29 +02:00
|
|
|
{
|
|
|
|
deployment.keys = {
|
|
|
|
"mastodon-secret-key-base.secret" = {
|
2023-10-10 15:21:16 +02:00
|
|
|
keyCommand = keyCommandEnv ++ [ "pass" "mastodon/secret-key-base" ];
|
2023-10-10 04:14:29 +02:00
|
|
|
destDir = "/secrets";
|
|
|
|
user = "mastodon";
|
|
|
|
group = "mastodon";
|
|
|
|
permissions = "0640";
|
|
|
|
uploadAt = "pre-activation";
|
|
|
|
};
|
|
|
|
"mastodon-otp-secret.secret" = {
|
2023-10-10 15:21:16 +02:00
|
|
|
keyCommand = keyCommandEnv ++ [ "pass" "mastodon/otp-secret" ];
|
2023-10-10 04:14:29 +02:00
|
|
|
destDir = "/secrets";
|
|
|
|
user = "mastodon";
|
|
|
|
group = "mastodon";
|
|
|
|
permissions = "0640";
|
|
|
|
uploadAt = "pre-activation";
|
|
|
|
};
|
|
|
|
"mastodon-vapid-private-key.secret" = {
|
2023-10-10 15:21:16 +02:00
|
|
|
keyCommand = keyCommandEnv ++ [ "pass" "mastodon/vapid-private-key" ];
|
2023-10-10 04:14:29 +02:00
|
|
|
destDir = "/secrets";
|
|
|
|
user = "mastodon";
|
|
|
|
group = "mastodon";
|
|
|
|
permissions = "0640";
|
|
|
|
uploadAt = "pre-activation";
|
|
|
|
};
|
|
|
|
"mastodon-email-smtp-pass.secret" = {
|
2023-10-10 15:21:16 +02:00
|
|
|
keyCommand = keyCommandEnv ++ [ "pass" "mastodon/email-smtp-pass" ];
|
2023-10-10 04:14:29 +02:00
|
|
|
destDir = "/secrets";
|
|
|
|
user = "mastodon";
|
|
|
|
group = "mastodon";
|
|
|
|
permissions = "0640";
|
|
|
|
uploadAt = "pre-activation";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|