From 1c621d615df8568fa11fa40500ee0a0631fd4bb0 Mon Sep 17 00:00:00 2001 From: jonaslagoni Date: Tue, 7 Jun 2022 01:14:40 +0200 Subject: [PATCH] fix: changed environment variables for nats client --- Oxide.Ext.GamingApi/GamingApiNats.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Oxide.Ext.GamingApi/GamingApiNats.cs b/Oxide.Ext.GamingApi/GamingApiNats.cs index d2acbac..4e469bc 100644 --- a/Oxide.Ext.GamingApi/GamingApiNats.cs +++ b/Oxide.Ext.GamingApi/GamingApiNats.cs @@ -77,7 +77,7 @@ private GamingApiNats() : this(new Imp()) private string GetNatsHost() { - var envName = "BLACKHAWK_SERVER_NATS_HOST"; + var envName = "GAMINGAPI_NATS_SERVER_HOST"; var value = Environment.GetEnvironmentVariable(envName); if (value == null) { @@ -92,7 +92,7 @@ private string GetNatsHost() private string GetServerId() { - var envName = "BLACKHAWK_SERVER_ID"; + var envName = "GAMINGAPI_SERVER_ID"; var value = Environment.GetEnvironmentVariable(envName); if (value == null) { @@ -106,7 +106,7 @@ private string GetServerId() } private string GetNatsNkeyUser() { - var envName = $"BLACKHAWK_SERVER_{GetServerId()}_NATS_NKEY_USER"; + var envName = $"GAMINGAPI_NATS_NKEY_USER"; var value = Environment.GetEnvironmentVariable(envName); if (value == null) { @@ -119,7 +119,7 @@ private string GetNatsNkeyUser() } private string GetNatsNkeySeed() { - var envName = $"BLACKHAWK_SERVER_{GetServerId()}_NATS_NKEY_SEED"; + var envName = $"GAMINGAPI_NATS_NKEY_SEED"; var value = Environment.GetEnvironmentVariable(envName); if (value == null) {