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

Configuration options for the HTTP server. More...

#include <http_server_options.hpp>

Collaboration diagram for http_server_options:
Collaboration graph

Public Attributes

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.
 

Detailed Description

Configuration options for the HTTP server.