PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
rest_config.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
18#pragma once
19
20#include <cstdint>
21#include <string>
22
23namespace kcenon::pacs::web {
24
31 std::string bind_address{"0.0.0.0"};
32
34 std::uint16_t port{8080};
35
37 std::size_t concurrency{4};
38
40 bool enable_cors{true};
41
43 std::string cors_allowed_origins{"*"};
44
46 bool enable_tls{false};
47
49 std::string tls_cert_path;
50
52 std::string tls_key_path;
53
55 std::uint32_t request_timeout_seconds{30};
56
58 std::size_t max_body_size{10 * 1024 * 1024};
59};
60
61} // namespace kcenon::pacs::web
Configuration options for the REST server.
Definition rest_config.h:29
std::size_t max_body_size
Maximum request body size in bytes (default 10MB)
Definition rest_config.h:58
std::string tls_cert_path
Path to TLS certificate file.
Definition rest_config.h:49
std::string cors_allowed_origins
CORS allowed origins (empty = allow all)
Definition rest_config.h:43
std::uint32_t request_timeout_seconds
Request timeout in seconds.
Definition rest_config.h:55
std::string bind_address
Address to bind the server to.
Definition rest_config.h:31
bool enable_tls
Enable TLS/SSL encryption (future feature)
Definition rest_config.h:46
bool enable_cors
Enable CORS (Cross-Origin Resource Sharing) headers.
Definition rest_config.h:40
std::uint16_t port
Port to listen on.
Definition rest_config.h:34
std::size_t concurrency
Number of worker threads for handling requests.
Definition rest_config.h:37
std::string tls_key_path
Path to TLS private key file.
Definition rest_config.h:52