Configuration options for the HTTP server.
More...
#include <http_server_options.hpp>
|
|
std::string | address = "0.0.0.0" |
| | Address to bind to (default: 0.0.0.0).
|
| |
|
std::uint16_t | port = 8080 |
| | Port to listen on.
|
| |
|
std::uint32_t | max_connections = 100 |
| | Maximum number of concurrent connections.
|
| |
|
std::chrono::seconds | request_timeout {30} |
| | Request timeout duration.
|
| |
|
bool | enable_ssl = false |
| | Whether to enable SSL/TLS.
|
| |
|
std::string | certificate_file |
| | Path to SSL certificate file.
|
| |
|
std::string | private_key_file |
| | Path to SSL private key file.
|
| |
|
std::string | jwt_secret |
| | JWT secret for authentication (if using symmetric key).
|
| |
|
std::string | jwt_public_key_file |
| | Path to JWT public key file (if using RSA).
|
| |
|
std::string | jwt_issuer = "ores" |
| | JWT issuer for validation.
|
| |
|
std::string | jwt_audience = "ores-api" |
| | JWT audience for validation.
|
| |
|
bool | enable_cors = true |
| | Enable CORS support.
|
| |
|
std::string | cors_allowed_origins = "*" |
| | Allowed origins for CORS (empty = all).
|
| |
|
std::string | server_identifier = "ores-http-server" |
| | Server identifier for responses.
|
| |
Configuration options for the HTTP server.