'Generic Commit'
This commit is contained in:
@@ -146,8 +146,8 @@ bool Server::start() {
|
||||
drogon::app().addListener(config_.host, config_.port);
|
||||
drogon::app().setThreadNum(16);
|
||||
|
||||
// Set security limits (allowing for 1GB+ files for testing)
|
||||
drogon::app().setClientMaxBodySize(2ULL * 1024 * 1024 * 1024); // 2GB max body size
|
||||
// Set security limits (allowing for large files up to 6GB)
|
||||
drogon::app().setClientMaxBodySize(6ULL * 1024 * 1024 * 1024); // 6GB max body size
|
||||
drogon::app().setClientMaxMemoryBodySize(100 * 1024 * 1024); // 100MB max memory body (keep this lower)
|
||||
drogon::app().enableGzip(true); // Enable compression
|
||||
|
||||
|
Reference in New Issue
Block a user