Skip to content

Commit

Permalink
Merge pull request #716 from SignalK/complex_config
Browse files Browse the repository at this point in the history
Support more complex lists of configurables
  • Loading branch information
mairas authored Aug 2, 2024
2 parents a2d7611 + 606a46b commit c394e59
Show file tree
Hide file tree
Showing 4 changed files with 1,016 additions and 1,008 deletions.
6 changes: 5 additions & 1 deletion src/sensesp/net/http_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "sensesp/system/configurable.h"
#include "sensesp_base_app.h"

#ifndef HTTP_SERVER_STACK_SIZE
#define HTTP_SERVER_STACK_SIZE 8192
#endif

namespace sensesp {

#ifndef HTTP_DEFAULT_PORT
Expand Down Expand Up @@ -60,7 +64,7 @@ class HTTPServer : public Configurable {
: config_(HTTPD_DEFAULT_CONFIG()),
Configurable(config_path) {
config_.server_port = port;
config_.stack_size = 4096;
config_.stack_size = HTTP_SERVER_STACK_SIZE;
config_.max_uri_handlers = 20;
config_.uri_match_fn = httpd_uri_match_wildcard;
String auth_realm_ = "Login required for " + SensESPBaseApp::get_hostname();
Expand Down
Loading

0 comments on commit c394e59

Please sign in to comment.