Added Environment Variables for docker

This commit is contained in:
Derek S 2021-04-07 15:07:08 -05:00
parent c585467471
commit 174c29aef7
2 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,11 @@ namespace LightReflectiveMirror
{
conf = JsonConvert.DeserializeObject<Config>(File.ReadAllText(CONFIG_PATH));
// Docker variables.
ushort.TryParse(Environment.GetEnvironmentVariable("LRM_ENDPOINT_PORT"), out conf.EndpointPort);
ushort.TryParse(Environment.GetEnvironmentVariable("LRM_TRANSPORT_PORT"), out conf.TransportPort);
WriteLogMessage("Loading Assembly... ", ConsoleColor.White, true);
try
{

Binary file not shown.