3using Microsoft.Extensions.Logging;
5using Newtonsoft.Json.Converters;
142 ArgumentNullException.ThrowIfNull(logger);
146 "No `ConfigVersion` specified, your configuration may be out of date! The current version is \"{currentVersion}\"",
151 "Your `ConfigVersion` is majorly out-of-date and may potentially cause issues running the server. Please follow migration instructions from the TGS release notes.",
154 logger.LogWarning(
"Your `ConfigVersion` is out-of-date. Please follow migration instructions from the TGS release notes.");
157 throw new InvalidOperationException(
158 $
"{nameof(DeploymentDirectoryCopyTasksPerCore)} must be at least 1!");
159 else if (this.GetCopyDirectoryTaskThrottle() < 1)
160 throw new InvalidOperationException(
161 $
"{nameof(DeploymentDirectoryCopyTasksPerCore)} is too large for the CPU core count of {Environment.ProcessorCount} and overflows a 32-bit signed integer. Please lower the value!");
General configuration options.
uint? DeploymentDirectoryCopyTasksPerCore
A limit on the amount of tasks used for asynchronous I/O when copying directories during the deployme...
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the GeneralConfiguration res...
GeneralConfiguration()
Initializes a new instance of the GeneralConfiguration class.
void CheckCompatibility(ILogger logger)
Validates the current ConfigVersion's compatibility and provides migration instructions.
static readonly Version CurrentConfigVersion
The current ConfigVersion.
bool HostApiDocumentation
If the swagger UI should be made avaiable.
bool UseBasicWatchdog
If the Components.Watchdog.BasicWatchdog should be preferred.
uint ShutdownTimeoutMinutes
The timeout minutes for gracefully stopping the server.
const uint DefaultMinimumPasswordLength
The default value for ServerInformationBase.MinimumPasswordLength.
const ushort DefaultApiPort
The default value of ApiPort.
uint RestartTimeoutMinutes
The timeout minutes for restarting the server.
uint ByondTopicTimeout
The timeout in milliseconds for sending and receiving topics to/from DreamDaemon. Note that a single ...
Version ConfigVersion
The Version the file says it is.
const uint DefaultRestartTimeoutMinutes
The default value for RestartTimeoutMinutes.
const uint DefaultUserLimit
The default value for ServerInformationBase.UserLimit.
string GitHubAccessToken
A GitHub personal access token to use for bypassing rate limits on requests. Requires no scopes.
const uint DefaultByondTopicTimeout
The default value for ByondTopicTimeout.
const uint DefaultInstanceLimit
The default value for ServerInformationBase.InstanceLimit.
const uint DefaultUserGroupLimit
The default value for ServerInformationBase.UserGroupLimit.
ushort ApiPort
The port the TGS API listens on.
const uint DefaultShutdownTimeoutMinutes
The default value for ShutdownTimeoutMinutes.
bool SkipAddingByondFirewallException
If the netsh.exe execution to exempt DreamDaemon from Windows firewall should be skipped.
Attribute for bringing in the master versions list from MSBuild that aren't embedded into assemblies ...
string RawConfigurationVersion
The Version string of the Configuration version built.
static MasterVersionsAttribute Instance
Return the Assembly's instance of the MasterVersionsAttribute.
SetupWizardMode
Determines if the SetupWizard will run.