Try moving LoadCredential to unitConfig
This commit is contained in:
+3
-1
@@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user