diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 16:50:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 16:50:10 +0100 |
commit | c53915391243bae6b55a0c6f8acc78b3361f2fb0 (patch) | |
tree | b71eaa6f3c164cdd43bab346469dcd0c947b8751 | |
parent | 240d09e1cff0bece64e1e5b975fc70e464598a69 (diff) | |
download | rspamd-c53915391243bae6b55a0c6f8acc78b3361f2fb0.tar.gz rspamd-c53915391243bae6b55a0c6f8acc78b3361f2fb0.zip |
[Minor] Add some default options
-rw-r--r-- | conf/options.inc | 5 | ||||
-rw-r--r-- | src/libserver/cfg_rcl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/conf/options.inc b/conf/options.inc index 504e06a01..f600fdb9c 100644 --- a/conf/options.inc +++ b/conf/options.inc @@ -24,6 +24,11 @@ map_file_watch_multiplier = 0.1; dynamic_conf = "$DBDIR/rspamd_dynamic"; history_file = "$DBDIR/rspamd.history"; check_all_filters = false; + +# Default settings +dns_max_requests = 64; +max_lua_urls = 1024; + dns { timeout = 1s; sockets = 16; diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index d409e40e8..5ef913f36 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1845,7 +1845,7 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections) rspamd_rcl_parse_struct_integer, G_STRUCT_OFFSET (struct rspamd_config, dns_max_requests), RSPAMD_CL_FLAG_INT_32, - "Legacy option for DNS maximum requests per task count"); + "Maximum DNS requests per task (default: 64)"); rspamd_rcl_add_default_handler (sub, "classify_headers", rspamd_rcl_parse_struct_string_list, |