tgstation-server 5.12.7
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 { get; set; }
19
23 public bool AllowAnyOrigin { get; set; }
24
28 public string Channel { get; set; }
29
33 public string PublicPath { get; set; }
34
38 public ICollection<string> AllowedOrigins { get; set; }
39 }
40}
string Channel
The channel to retrieve the webpanel from. "local" uses the bundled version.
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.
const string Section
The key for the Microsoft.Extensions.Configuration.IConfigurationSection the ControlPanelConfiguratio...
ICollection< string > AllowedOrigins
Origins allowed for CORS requests.