Try moving LoadCredential to unitConfig

This commit is contained in:
niten 2022-06-19 13:35:30 -07:00
parent 7385b536b7
commit 39210c0871
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,6 @@ in {
serviceConfig = {
ExecStart = "${pricebot}/bin/pricebot";
DynamicUser = true;
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
PrivateTmp = true;
PrivateDevices = true;
ProtectSystem = "strict";
@ -84,6 +83,9 @@ in {
Restart = "always";
StandardOutput = "journal";
};
unitConfig = {
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
};
}) cfg.monitors;
};
}