feat(bot): get cluster config from Nomad node index env variable
This commit is contained in:
parent
5833e7644d
commit
c4726f358b
@ -20,6 +20,10 @@ public class Init
|
||||
{
|
||||
private static async Task Main(string[] args)
|
||||
{
|
||||
// set cluster config from Nomad node index env variable
|
||||
if (Environment.GetEnvironmentVariable("NOMAD_NODE_INDEX") is {} nodeIndex)
|
||||
Environment.SetEnvironmentVariable("PluralKit__Bot__Cluster__NodeName", $"pluralkit-{nodeIndex}");
|
||||
|
||||
// Load configuration and run global init stuff
|
||||
var config = InitUtils.BuildConfiguration(args).Build();
|
||||
InitUtils.InitStatic();
|
||||
|
Loading…
Reference in New Issue
Block a user