Skip to content

Commit

Permalink
fix: changed environment variables for nats client
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jun 6, 2022
1 parent e144d73 commit 1c621d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Oxide.Ext.GamingApi/GamingApiNats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit 1c621d6

Please sign in to comment.