ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
server_options Struct Referencefinal

Configuration for the server. More...

#include <server_options.hpp>

Collaboration diagram for server_options:
Collaboration graph

Public Attributes

std::uint16_t port = 55555
 TCP port the server listens on.
 
std::uint32_t max_connections = 10
 Maximum number of concurrent client connections.
 
std::string certificate_file = "server.crt"
 Path to the TLS certificate file (PEM format).
 
std::string private_key_file = "server.key"
 Path to the TLS private key file (PEM format).
 
std::string server_identifier = "ores-server"
 Human-readable identifier for the server instance.
 
std::optional< std::string > certificate_chain_content
 Optional content of the TLS certificate chain (PEM format).
 
std::optional< std::string > private_key_content
 Optional content of the TLS private key (PEM format).
 
bool enable_signal_watching = true
 Whether to enable signal watching.
 

Detailed Description

Configuration for the server.

Member Data Documentation

◆ certificate_chain_content

std::optional<std::string> certificate_chain_content

Optional content of the TLS certificate chain (PEM format).

If present, this takes precedence over certificate_file.

◆ private_key_content

std::optional<std::string> private_key_content

Optional content of the TLS private key (PEM format).

If present, this takes precedence over private_key_file.

◆ enable_signal_watching

bool enable_signal_watching = true

Whether to enable signal watching.

If true, the server will watch for signals and handle them appropriately.