Try moving LoadCredential to unitConfig
This commit is contained in:
parent
7385b536b7
commit
39210c0871
|
@ -70,7 +70,6 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pricebot}/bin/pricebot";
|
ExecStart = "${pricebot}/bin/pricebot";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
|
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
ProtectSystem = "strict";
|
ProtectSystem = "strict";
|
||||||
|
@ -84,6 +83,9 @@ in {
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
StandardOutput = "journal";
|
StandardOutput = "journal";
|
||||||
};
|
};
|
||||||
|
unitConfig = {
|
||||||
|
LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}";
|
||||||
|
};
|
||||||
}) cfg.monitors;
|
}) cfg.monitors;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue