tgstation-server  4.3.2
The /tg/station 13 server suite
GeneralConfiguration.cs
Go to the documentation of this file.
1 using Newtonsoft.Json;
2 using Newtonsoft.Json.Converters;
4 
5 namespace Tgstation.Server.Host.Configuration
6 {
11  {
15  public const string Section = "General";
16 
20  public const ushort DefaultApiPort = 5000;
21 
25  const uint DefaultMinimumPasswordLength = 15;
26 
30  const uint DefaultInstanceLimit = 10;
31 
35  const uint DefaultUserLimit = 100;
36 
40  const int DefaultByondTopicTimeout = 5000;
41 
45  const int DefaultRestartTimeout = 60000;
46 
50  public ushort ApiPort { get; set; }
51 
55  public string GitHubAccessToken { get; set; }
56 
60  [JsonConverter(typeof(StringEnumConverter))]
61  public SetupWizardMode SetupWizardMode { get; set; }
62 
66  public int ByondTopicTimeout { get; set; } = DefaultByondTopicTimeout;
67 
71  public int RestartTimeout { get; set; } = DefaultRestartTimeout;
72 
76  public bool UseExperimentalWatchdog { get; set; }
77 
81  public bool UseBasicWatchdogOnWindows { get; set; }
82 
87  {
88  MinimumPasswordLength = DefaultMinimumPasswordLength;
89  InstanceLimit = DefaultInstanceLimit;
90  UserLimit = DefaultUserLimit;
91  }
92  }
93 }
Base class for Models.ServerInformation.
SetupWizardMode
Determines if the Setup.SetupWizard will run
GeneralConfiguration()
Initializes a new instance of the GeneralConfiguration .