13 #ifndef mitkRestServerConfig_h
14 #define mitkRestServerConfig_h
74 std::string host =
"::";
77 int threadPoolSize = 4;
78 int readTimeoutSeconds = 30;
79 int writeTimeoutSeconds = 30;
84 bool requireAuth =
false;
87 int maxPayloadSizeMB = 512;
92 bool rateLimitEnabled =
false;
93 int rateLimitPerMinute = 120;
95 size_t maxActiveTempDirsPerIp = 5;
97 bool httpsEnabled =
false;
#define MITKRESTAPI_EXPORT
Find image slices visible on a given plane.
FileAccessMode
Access mode for file system path restrictions.
@ Unrestricted
No file path restrictions (default).
@ AllowedDirectories
Only allow paths under configured directories.
ClientAccessMode
Access mode for client IP filtering.
@ Whitelist
Accept connections only from explicitly listed IPs.
@ LocalhostOnly
Only accept connections from 127.0.0.1 and ::1 (default).
@ AllowAll
Accept connections from any IP (not recommended without authentication).
MITKRESTAPI_EXPORT std::string GetRestApiDocumentationUrl(int major, int minor, int patch)
Build the public docs.mitk.org URL of the REST API specification for a given MITK version.
Configuration parameters for the REST API server.
std::string sslCertPath
Path to the SSL/TLS certificate file.
std::vector< std::string > allowedClientIPs
List of allowed client IPs (used with Whitelist mode).
std::string apiToken
The expected API token for Bearer authentication.
std::string sslKeyPath
Path to the SSL/TLS private key file.
std::vector< std::string > allowedFileDirectories
Allowed directories (used with AllowedDirectories mode).