31 void initialize(
const std::string& configFilePath);
79 namespace DtServerConfig
void initialize(const std::string &configFilePath)
Load settings from the given JSON config file path. Falls back to compiled-in defaults if the file ca...
static constexpr int DEFAULT_THREADS
Definition: webServerSettings.h:83
std::string scenarioClassificationLevel
Classification level string included in every ScenarioStatus message. Defaults to DtServerConfig::DEF...
Definition: webServerSettings.h:58
static constexpr int DEFAULT_PORT
Definition: webServerSettings.h:82
static constexpr auto DEFAULT_USERS_FILENAME
Definition: webServerSettings.h:87
static DtWebServerSettings & getInstance()
Returns the process-wide singleton instance.
static constexpr bool DEFAULT_AUTO_SUBSCRIBE_RESOURCES
Definition: webServerSettings.h:91
static constexpr auto DEFAULT_ROLE_ASSIGNMENTS_DIR
Definition: webServerSettings.h:89
bool accessControlEnabled
When true (default), all /api/* requests require a valid Bearer session key. Set to false to disable ...
Definition: webServerSettings.h:42
static constexpr auto DEFAULT_DATA_DIR
Definition: webServerSettings.h:84
static constexpr bool DEFAULT_AUTO_ENABLE_SPOT_REPORTS
Definition: webServerSettings.h:92
DtWebServerSettings — process-wide singleton for runtime web server settings.
Definition: webServerSettings.h:22
int port
Definition: webServerSettings.h:37
int numNetworkThreads
Definition: webServerSettings.h:73
static constexpr auto CONFIG_FILENAME
Definition: webServerSettings.h:86
int threads
Definition: webServerSettings.h:38
std::string usersFilePath
Path to the JSON file containing the list of users and their permissions. Defaults to DtServerConfig:...
Definition: webServerSettings.h:46
std::string roleDefsDir
Directory containing role definition JSON files (one file per named definition). Defaults to DtServer...
Definition: webServerSettings.h:50
static constexpr auto DEFAULT_ROLE_DEFS_DIR
Definition: webServerSettings.h:88
bool autoEnableSpotReports
When true, the server automatically sends DtSetSpotReportingRequestEnableToGuiIfOff to entities whose...
Definition: webServerSettings.h:71
static constexpr auto DEFAULT_ADDRESS
Definition: webServerSettings.h:81
static constexpr auto DEFAULT_SCENARIOS_DIR
Definition: webServerSettings.h:94
static constexpr auto SETTINGS_DIR
Definition: webServerSettings.h:85
static constexpr int DEFAULT_NUM_NETWORK_THREADS
Definition: webServerSettings.h:93
static constexpr auto DEFAULT_SCENARIO_CLASSIFICATION_LEVEL
Definition: webServerSettings.h:90
std::string roleAssignmentsDir
Directory containing saved role assignment JSON files (one file per named set). Defaults to DtServerC...
Definition: webServerSettings.h:54
bool autoSubscribeResources
When true, the server automatically calls startMonitoring for every entity and aggregate discovered i...
Definition: webServerSettings.h:64
std::string address
Definition: webServerSettings.h:36