ctx,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, password),
0,
- NULL);
+ "Password for read-only commands");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
enable_password),
0,
- NULL);
+ "Password for read and write commands");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, use_ssl),
0,
- NULL);
+ "Unimplemented");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, ssl_cert),
0,
- NULL);
+ "Unimplemented");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, ssl_key),
0,
- NULL);
+ "Unimplemented");
rspamd_rcl_register_worker_option (cfg,
type,
"timeout",
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
timeout),
RSPAMD_CL_FLAG_TIME_INTEGER,
- NULL);
+ "Protocol timeout");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx, secure_ip),
0,
- NULL);
+ "List of IP addresses that are allowed for password-less access");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
static_files_dir),
0,
- NULL);
+ "Directory for static files served by controller's HTTP server");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
key),
0,
- NULL);
+ "Encryption keypair");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_controller_worker_ctx,
saved_stats_path),
0,
- NULL);
+ "Directory where controller saves server's statistics between restarts");
return ctx;
}
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile),
0,
- NULL);
+ "Path to fuzzy database");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile),
0,
- NULL);
+ "Path to fuzzy database (alias for hashfile)");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile),
0,
- NULL);
+ "Path to fuzzy database (alias for hashfile)");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, hashfile),
0,
- NULL);
+ "Path to fuzzy database (alias for hashfile)");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx,
sync_timeout),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "Time to perform database sync, default: "
+ G_STRINGIFY (DEFAULT_SYNC_TIMEOUT) " seconds");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx,
expire),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "Default expire time for hashes, default: "
+ G_STRINGIFY (DEFAULT_EXPIRE) " seconds");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, update_map),
0,
- NULL);
+ "Allow modifications from the following IP addresses");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
0,
RSPAMD_CL_FLAG_MULTIPLE,
- NULL);
+ "Encryption keypair (can be repeated for different keys)");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx,
keypair_cache_size),
RSPAMD_CL_FLAG_UINT,
- NULL);
+ "Size of keypairs cache, default: "
+ G_STRINGIFY (DEFAULT_KEYPAIR_CACHE_SIZE));
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_fuzzy_storage_ctx, encrypted_only),
0,
- NULL);
+ "Allow encrypted requests only (and forbid all unknown keys or plaintext requests)");
return ctx;
ctx,
G_STRUCT_OFFSET (struct hs_helper_ctx, hs_dir),
0,
- NULL);
+ "Directory where to save hyperscan compiled expressions");
rspamd_rcl_register_worker_option (cfg,
type,
"max_time",
ctx,
G_STRUCT_OFFSET (struct hs_helper_ctx, max_time),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "Maximum time to wait for compilation of a single expression");
return ctx;
}
G_STRUCT_OFFSET (struct http_proxy_ctx,
timeout),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "IO timeout");
rspamd_rcl_register_worker_option (cfg,
type,
"rotate",
G_STRUCT_OFFSET (struct http_proxy_ctx,
rotate_tm),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "Rotation keys time, default: "
+ G_STRINGIFY (DEFAULT_ROTATION_TIME) " seconds");
rspamd_rcl_register_worker_option (cfg,
type,
"keypair",
G_STRUCT_OFFSET (struct http_proxy_ctx,
key),
0,
- NULL);
+ "Server's keypair");
rspamd_rcl_register_worker_option (cfg,
type,
"upstream",
ctx,
0,
0,
- NULL);
+ "List of upstreams");
return ctx;
}
ctx,
G_STRUCT_OFFSET (struct rspamd_lua_worker_ctx, file),
0,
- NULL);
+ "Run the following lua script when accepting a connection");
rspamd_rcl_register_worker_parser (cfg, type, rspamd_lua_worker_parser,
ctx);
ctx,
G_STRUCT_OFFSET (struct smtp_proxy_ctx, upstreams_str),
0,
- NULL);
+ "List of upstream SMTP servers");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct smtp_proxy_ctx,
smtp_timeout_raw),
RSPAMD_CL_FLAG_TIME_UINT_32,
- NULL);
+ "IO timeout");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct smtp_proxy_ctx,
smtp_delay),
RSPAMD_CL_FLAG_TIME_UINT_32,
- NULL);
+ "SMTP greeting delay");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct smtp_proxy_ctx,
delay_jitter),
RSPAMD_CL_FLAG_TIME_UINT_32,
- NULL);
+ "Jitter atribute for SMTP delay");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct smtp_proxy_ctx, use_xclient),
0,
- NULL);
+ "Use XCLIENT protocol for upstream communication");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct smtp_proxy_ctx, instant_reject),
0,
- NULL);
+ "Reject invalid pipelining");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct smtp_proxy_ctx,
proxy_buf_len),
RSPAMD_CL_FLAG_INT_32,
- NULL);
+ "Adjust SMTP buffer size");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct smtp_proxy_ctx, rbls),
0,
- NULL);
+ "Use the following DNS lists as IP blacklists");
return ctx;
}
ctx,
G_STRUCT_OFFSET (struct rspamd_worker_ctx, is_mime),
0,
- NULL);
+ "Set to `false` if this worker is intended to work with non-MIME messages");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_worker_ctx, is_http),
0,
- NULL);
+ "Deprecated: always true now");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_worker_ctx, is_json),
0,
- NULL);
+ "Deprecated: always true now");
rspamd_rcl_register_worker_option (cfg,
type,
ctx,
G_STRUCT_OFFSET (struct rspamd_worker_ctx, allow_learn),
0,
- NULL);
+ "Deprecated: disabled and forgotten");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_worker_ctx,
timeout),
RSPAMD_CL_FLAG_TIME_INTEGER,
- NULL);
+ "Protocol IO timeout");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_worker_ctx,
task_timeout),
RSPAMD_CL_FLAG_TIME_FLOAT,
- NULL);
+ "Maximum task processing time, default: "
+ G_STRINGIFY(DEFAULT_TASK_TIMEOUT)
+ " seconds");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_worker_ctx,
max_tasks),
RSPAMD_CL_FLAG_INT_32,
- NULL);
+ "Maximum count of parallel tasks processed by a single worker process");
rspamd_rcl_register_worker_option (cfg,
type,
G_STRUCT_OFFSET (struct rspamd_worker_ctx,
key),
0,
- NULL);
+ "Encryption keypair");
return ctx;
}