|
PACS System 0.1.0
PACS DICOM system library
|
Configuration options for the REST server. More...
#include <rest_config.h>

Public Attributes | |
| std::string | bind_address {"0.0.0.0"} |
| Address to bind the server to. | |
| std::uint16_t | port {8080} |
| Port to listen on. | |
| std::size_t | concurrency {4} |
| Number of worker threads for handling requests. | |
| bool | enable_cors {true} |
| Enable CORS (Cross-Origin Resource Sharing) headers. | |
| std::string | cors_allowed_origins {"*"} |
| CORS allowed origins (empty = allow all) | |
| bool | enable_tls {false} |
| Enable TLS/SSL encryption (future feature) | |
| std::string | tls_cert_path |
| Path to TLS certificate file. | |
| std::string | tls_key_path |
| Path to TLS private key file. | |
| std::uint32_t | request_timeout_seconds {30} |
| Request timeout in seconds. | |
| std::size_t | max_body_size {10 * 1024 * 1024} |
| Maximum request body size in bytes (default 10MB) | |
Configuration options for the REST server.
Definition at line 29 of file rest_config.h.
| std::string kcenon::pacs::web::rest_server_config::bind_address {"0.0.0.0"} |
Address to bind the server to.
Definition at line 31 of file rest_config.h.
Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().
| std::size_t kcenon::pacs::web::rest_server_config::concurrency {4} |
Number of worker threads for handling requests.
Definition at line 37 of file rest_config.h.
Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().
| std::string kcenon::pacs::web::rest_server_config::cors_allowed_origins {"*"} |
CORS allowed origins (empty = allow all)
Definition at line 43 of file rest_config.h.
Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().
| bool kcenon::pacs::web::rest_server_config::enable_cors {true} |
Enable CORS (Cross-Origin Resource Sharing) headers.
Definition at line 40 of file rest_config.h.
Referenced by kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().
| bool kcenon::pacs::web::rest_server_config::enable_tls {false} |
| std::size_t kcenon::pacs::web::rest_server_config::max_body_size {10 * 1024 * 1024} |
Maximum request body size in bytes (default 10MB)
Definition at line 58 of file rest_config.h.
| std::uint16_t kcenon::pacs::web::rest_server_config::port {8080} |
Port to listen on.
Definition at line 34 of file rest_config.h.
Referenced by kcenon::pacs::web::rest_server::port(), kcenon::pacs::web::rest_server::start(), and kcenon::pacs::web::rest_server::start_async().
| std::uint32_t kcenon::pacs::web::rest_server_config::request_timeout_seconds {30} |
| std::string kcenon::pacs::web::rest_server_config::tls_cert_path |
Path to TLS certificate file.
Definition at line 49 of file rest_config.h.
| std::string kcenon::pacs::web::rest_server_config::tls_key_path |
Path to TLS private key file.
Definition at line 52 of file rest_config.h.