WorkerEnvironment
The game's environment variables a worker host gives every worker it launches, in this order (a later layer wins over an earlier one): The service manifest's Env map (ManifestEnv): the non-secret variables of a self-hosted deployment, wr...
Nebula.Hosting · Packages/com.1by3.nebula/Runtime/Orchestrator/Hosting/WorkerEnvironment.cspublic static class WorkerEnvironmentThe game's environment variables a worker host gives every worker it launches, in this order (a later layer wins over an earlier one):
- The service manifest's
Envmap (ManifestEnv): the non-secret variables of a self-hosted deployment, written bynebula deployfromdeploy.envin nebula.json. - The dotenv file the host's own
NEBULA_ENV_FILEnames: secrets a platform keeps out of the build (Nebula Cloud), or the project's.env.nebulaundernebula start.
Reserved names (PORT, NEBULA_*) are dropped with a warning; values are never logged.
Fields
ManifestEnv
public static IDictionary<string, string> ManifestEnv;The service manifest's Env map, set by the standalone orchestrator when it loads the manifest. Null when there is none.
Methods
Resolve
public static Dictionary<string, string> Resolve(Func<string, string> getEnvironment = null, Action<string> warn = null);The variables to give a worker. getEnvironment reads the launcher's own environment (null reads the process's); warn gets one line per variable left out.
ApplyTo
public static void ApplyTo(IDictionary<string, string> target, IDictionary<string, string> vars);Put vars into a child process's environment (System.Diagnostics.ProcessStartInfo.Environment).