Bug fixing
This commit is contained in:
@@ -17,6 +17,9 @@ struct ServerConfig {
|
||||
std::vector<std::string> allowed_methods = {"GET", "PUT", "POST", "DELETE", "OPTIONS"};
|
||||
std::vector<std::string> allowed_headers = {"Authorization", "Content-Type"};
|
||||
bool allow_credentials = false;
|
||||
// Rate limiting configuration
|
||||
int auth_rate_limit = 5; // Maximum number of auth attempts
|
||||
int auth_window_seconds = 10; // Time window in seconds (10 seconds)
|
||||
};
|
||||
|
||||
bool load_config(const std::string& config_path, ServerConfig& config);
|
||||
|
Reference in New Issue
Block a user