tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ControlPanelConfiguration.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4{
8 public sealed class ControlPanelConfiguration
9 {
13 public const string Section = "ControlPanel";
14
18 public bool Enable
19#if NO_WEBPANEL
20 {
21 get => false;
22 set => _ = value;
23 }
24#else
25 {
26 get;
27 set;
28 }
29#endif
30
34 public bool AllowAnyOrigin { get; set; }
35
39 public string? Channel { get; set; }
40
44 public string? PublicPath { get; set; }
45
49 public ICollection<string>? AllowedOrigins { get; set; }
50 }
51}
bool AllowAnyOrigin
If any origin is allowed for CORS requests. This overrides AllowedOrigins.
string? PublicPath
The public path to the TGS control panel from a wider network.
string? Channel
The channel to retrieve the webpanel from. "local" uses the bundled version.
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the ControlPanelConfiguratio...
ICollection< string >? AllowedOrigins
Origins allowed for CORS requests.